From 8e7e96c5442195dc4443dca0768672058994eeb7 Mon Sep 17 00:00:00 2001 From: Phil Ruff Date: Sat, 1 Aug 2026 14:05:54 +0100 Subject: [PATCH] fix(ci): add explicit markers to BDD and post-deploy pytest runs Same class of bug as the acceptance-check job: the pytest.ini default -m 'unit or integration' deselects BDD tests (auto-marked e2e) and acceptance tests (auto-marked acceptance), producing exit code 5 (zero tests collected) and failing main's Tier 2 governance guard. --- .github/workflows/docker-publish.yml | 2 +- .github/workflows/post-deployment.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 24fd9511..ee44f162 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -214,7 +214,7 @@ jobs: docker exec \ -e DJANGO_SETTINGS_MODULE=investor_app.settings_test \ prei-live-test \ - python -m pytest tests_bdd/ -q --tb=short 2>&1 + python -m pytest tests_bdd/ -q --tb=short -m e2e 2>&1 echo "=== All BDD acceptance tests passed ===" - name: Extract test report log if: always() diff --git a/.github/workflows/post-deployment.yml b/.github/workflows/post-deployment.yml index f6afeaf9..0368385a 100644 --- a/.github/workflows/post-deployment.yml +++ b/.github/workflows/post-deployment.yml @@ -79,7 +79,7 @@ jobs: env: BASE_URL: ${{ needs.smoke.outputs.target }} run: | - python -m pytest tests/acceptance/ -q --tb=short -v + python -m pytest tests/acceptance/ -q --tb=short -v -m acceptance # ── Performance budgets via Lighthouse ────────────────────────────────────