Skip to content

Commit f9c4652

Browse files
author
Vianpyro
committed
Update GitHub Actions workflow to run tests on multiple OS environments
1 parent f570a88 commit f9c4652

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/pytest.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
pip install -r requirements.txt
32-
33-
- name: Test with pytest
34-
run: |
3532
pip install pytest pytest-cov
36-
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
37-
python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
38-
else
39-
python3 -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
40-
fi
33+
34+
- matrix.os: ubuntu-latest
35+
run: python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
36+
37+
- matrix.os: macos-latest
38+
run: python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
39+
40+
- matrix.os: windows-latest
41+
run: python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

0 commit comments

Comments
 (0)