ci: split unit and integration tests into separate steps
Some checks failed
CI / pytest (push) Waiting to run
CI / ruff (push) Successful in 12s
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / validate (push) Has been cancelled

2893 tests with DB fixture setup take 2.5h+ on 2-core ARM runner.
Split into unit tests (2484, fast) and integration tests (341, DB-heavy)
as separate steps for better visibility into what's slow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 21:10:50 +01:00
parent 60bed05d3f
commit 0ddef13124

View File

@@ -74,8 +74,11 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: uv pip install --system -r requirements.txt -r requirements-test.txt run: uv pip install --system -r requirements.txt -r requirements-test.txt
- name: Run tests - name: Run unit tests
run: python -m pytest -v --tb=short --timeout=120 --no-cov --override-ini="addopts=" -p no:cacheprovider --durations=20 run: python -m pytest -m "unit" -v --tb=short --timeout=120 --no-cov --override-ini="addopts=" -p no:cacheprovider --durations=20
- name: Run integration tests
run: python -m pytest -m "integration" -v --tb=short --timeout=120 --no-cov --override-ini="addopts=" -p no:cacheprovider --durations=20
validate: validate:
runs-on: ubuntu-latest runs-on: ubuntu-latest