Skip to content

Commit fde90bf

Browse files
authored
Also run tests on commits to main (#292)
and upload coverage, as a base report is required to report of loss of code coverage
1 parent 3dd3b33 commit fde90bf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Tests
22
on:
3+
push:
4+
branches:
5+
- main
36
pull_request:
47
paths:
58
- 'src/**'
@@ -37,7 +40,8 @@ jobs:
3740
- name: Run tests
3841
run: |
3942
marker="${{ matrix.php_api == true && 'php_api' || 'not php_api' }} and ${{ matrix.mutations == true && 'mut' || 'not mut' }}"
40-
docker compose exec python-api coverage run -m pytest -n auto -v -m "$marker"
43+
jobs="${{ matrix.mutations == true && '1' || 'auto' }}"
44+
docker compose exec python-api coverage run -m pytest -n "$jobs" -v -m "$marker"
4145
- name: Produce coverage report
4246
run: docker compose exec python-api coverage xml
4347
- name: Upload results to Codecov

0 commit comments

Comments
 (0)