From b5a91c5635149396519d3511769e474ec677af5c Mon Sep 17 00:00:00 2001 From: ruv Date: Tue, 2 Jun 2026 17:29:04 +0200 Subject: [PATCH] ci(v1-api): install pytest, drop root --cov addopts for perf suite, ascii comment --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82c66d72..3bfd7269 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -265,7 +265,7 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install locust + pip install pytest # the perf suite is pytest, not locust - name: Start application working-directory: archive/v1 @@ -286,7 +286,9 @@ jobs: # test_frame_budget.py, test_inference_speed.py) — there is no # locustfile.py, so the old `locust -f tests/performance/locustfile.py` # command always failed with "Could not find ...". Run the real suite. - pytest tests/performance/ -v --junitxml=perf-junit.xml + # -o addopts="" drops the root pyproject's --cov/--cov-fail-under=100 + # flags (pytest-cov isn't installed here and 100% cov is for unit tests). + pytest tests/performance/ -o addopts="" -v --junitxml=perf-junit.xml - name: Upload performance results if: always() @@ -380,7 +382,7 @@ jobs: needs: [docker-build] if: github.ref == 'refs/heads/main' permissions: - contents: write # gh-pages deploy needs write (GITHUB_TOKEN is read-only by default → 403) + contents: write # gh-pages deploy needs write (GITHUB_TOKEN is read-only by default -> 403) steps: - name: Checkout code uses: actions/checkout@v4