From a1cfb399cc687b25155e92acbb141833602946bc Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Mon, 6 Jan 2025 17:17:00 +0300 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=9B=A0=EF=B8=8F=20streamline?= =?UTF-8?q?=20testing=20workflow=20by=20removing=20deprecated=20test.yml?= =?UTF-8?q?=20and=20adding=20pytest=20step=20to=20poetry-test.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/poetry-test.yml | 5 +++- .github/workflows/test.yml | 40 ------------------------------- 2 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/poetry-test.yml b/.github/workflows/poetry-test.yml index e8f40881a..4a2faa791 100644 --- a/.github/workflows/poetry-test.yml +++ b/.github/workflows/poetry-test.yml @@ -1,4 +1,4 @@ -name: ๐Ÿ”ง Poetry Check and Installation Test Workflow +name: ๐Ÿ”ง Poetry Checks and Test Workflow on: push: paths: @@ -40,3 +40,6 @@ jobs: - name: ๐Ÿงช Run the Import test run: poetry run python -c "import supervision; from supervision import assets; from supervision import metrics; print(supervision.__version__)" + + - name: ๐Ÿงช Run the Test + run: poetry run pytest \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index cd197dbea..000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Test WorkFlow - -on: - pull_request: - branches: [main, develop] - -permissions: - contents: read - checks: write # Required for test reporting - pull-requests: write # Required for PR comments - -jobs: - pytest: - name: PyTest - timeout-minutes: 10 - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] - fail-fast: false # Continue with other versions if one fails - runs-on: ${{ matrix.os }} - steps: - - name: ๐Ÿ“ฅ Checkout the repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: ๐Ÿ Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 - with: - python-version: ${{ matrix.python-version }} - - - name: ๐Ÿ“œ Setup Poetry - uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0 - - - name: ๐Ÿ“ฆ Install dependencies - run: | - poetry install --with=test - - - name: ๐Ÿงช Run pytest - run: | - poetry run pytest