Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Commit 491681e

Browse files
committed
Test against multiple operating systems in CI pipeline
Now that we have operating system resource accessing functionality, we really want to test against all the major operating systems.
1 parent 0bcbd5f commit 491681e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,11 @@ jobs:
9393
fail-fast: true
9494
matrix:
9595
python-version: ['3.7', '3.8', '3.9', '3.10']
96-
97-
runs-on: ubuntu-latest
96+
os: [ubuntu-latest, macos-latest, windows-latest]
97+
defaults:
98+
run:
99+
shell: bash
100+
runs-on: ${{ matrix.os }}
98101
steps:
99102
- name: "Checkout code"
100103
uses: actions/checkout@v2
@@ -136,7 +139,7 @@ jobs:
136139
pytest --verbose --cov=. --cov-report=xml .
137140
138141
- name: "Upload coverage"
139-
if: matrix.python-version == '3.7'
142+
if: matrix.python-version == '3.7' && matrix.os == 'ubuntu-latest'
140143
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
141144
with:
142145
files: coverage.xml

0 commit comments

Comments
 (0)