From 0ddef13124d8f048f2e8b1017012181c4f4b3cff Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Thu, 19 Mar 2026 21:10:50 +0100 Subject: [PATCH] ci: split unit and integration tests into separate steps 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) --- .gitea/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b8177746..f85d7d45 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -74,8 +74,11 @@ jobs: - name: Install dependencies run: uv pip install --system -r requirements.txt -r requirements-test.txt - - name: Run tests - run: python -m pytest -v --tb=short --timeout=120 --no-cov --override-ini="addopts=" -p no:cacheprovider --durations=20 + - name: Run unit tests + 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: runs-on: ubuntu-latest