From 17ca06864996cef3bb070a25da59b3676824a66e Mon Sep 17 00:00:00 2001 From: PGijsbers Date: Wed, 25 Mar 2026 16:28:51 +0100 Subject: [PATCH 1/2] Also run tests on commits to main --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0b04dfb..83550ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,5 +1,8 @@ name: Tests on: + push: + branches: + - main pull_request: paths: - 'src/**' From 7f6e7e21423b01bf813f3bac44d60f1d59e81717 Mon Sep 17 00:00:00 2001 From: PGijsbers Date: Wed, 25 Mar 2026 16:40:39 +0100 Subject: [PATCH 2/2] Run tests that mutate database state in sequence --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 83550ef..07f6440 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,7 +40,8 @@ jobs: - name: Run tests run: | marker="${{ matrix.php_api == true && 'php_api' || 'not php_api' }} and ${{ matrix.mutations == true && 'mut' || 'not mut' }}" - docker compose exec python-api coverage run -m pytest -n auto -v -m "$marker" + jobs="${{ matrix.mutations == true && '1' || 'auto' }}" + docker compose exec python-api coverage run -m pytest -n "$jobs" -v -m "$marker" - name: Produce coverage report run: docker compose exec python-api coverage xml - name: Upload results to Codecov