parallelize the CI

This commit is contained in:
thomas girod 2024-07-04 14:39:32 +02:00
parent f1fa8d34bf
commit 71fe9559b1

View File

@ -21,6 +21,10 @@ jobs:
tests: tests:
name: Run tests and generate coverage report name: Run tests and generate coverage report
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
fail-fast: false # don't interrupt the other test processes
matrix:
pytest-mark: [slow, not slow]
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -28,7 +32,7 @@ jobs:
- uses: ./.github/actions/setup_xapian - uses: ./.github/actions/setup_xapian
- uses: ./.github/actions/compile_messages - uses: ./.github/actions/compile_messages
- name: Run tests - name: Run tests
run: poetry run coverage run -m pytest run: poetry run coverage run -m pytest -m "${{ matrix.pytest-mark }}"
- name: Generate coverage report - name: Generate coverage report
run: | run: |
poetry run coverage report poetry run coverage report