ci: split pytest runs (default, prepend, smart)

With pytest labels installed (default, prepend, smart) it will be
easier to recognize which sub set contains a failing test.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
This commit is contained in:
Norwid Behrnd 2024-11-05 22:12:12 +01:00
parent 39364a6aef
commit 07319a2726

View file

@ -19,7 +19,7 @@ on:
jobs:
test-ubuntu-2404:
runs-on: ubuntu-24.04
timeout-minutes: 2
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
@ -34,11 +34,13 @@ jobs:
run: pip install -r requirements.txt
- name: run the check by pytest
run: python -m pytest
run: python -m pytest -m "default"; \
python -m pytest -m "prepend"; \
python -m pytest -m "smart"
test-windows-2022:
runs-on: windows-2022
timeout-minutes: 2
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
@ -53,11 +55,14 @@ jobs:
run: pip install -r requirements.txt
- name: run the check by pytest
run: python -m pytest
run: python -m pytest -m "default"; \
python -m pytest -m "prepend"; \
python -m pytest -m "smart"
test-macos-14:
runs-on: macos-14
timeout-minutes: 2
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
@ -72,4 +77,7 @@ jobs:
run: pip install -r requirements.txt
- name: run the check by pytest
run: python -m pytest
run: python -m pytest -m "default"; \
python -m pytest -m "prepend"; \
python -m pytest -m "smart"