Skip to content

Commit c1a204e

Browse files
committed
👷 Test across platforms all supported platforms
1 parent 722cc88 commit c1a204e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,18 @@ jobs:
116116
# Tests jobs ------------------------
117117

118118
test:
119-
name: Python ${{ matrix.python-version }}
120-
runs-on: "ubuntu-latest"
121-
env:
122-
USING_COVERAGE: "3.9"
123-
124119
strategy:
125120
matrix:
121+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
126122
python-version: ["3.7", "3.8", "3.9"]
127123

124+
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
125+
runs-on: ${{ matrix.os }}
126+
127+
env:
128+
USING_COVERAGE_PY_VER: "3.9"
129+
USING_COVERAGE_OS: "3.9"
130+
128131
steps:
129132
- name: Check out the repository
130133
uses: actions/[email protected]
@@ -155,7 +158,8 @@ jobs:
155158
make test
156159
157160
- name: Upload coverage to Codecov
158-
if: "contains(env.USING_COVERAGE, matrix.python-version)"
161+
if: "contains(matrix.python-version, env.USING_COVERAGE_PY_VER) &&
162+
contains(matrix.python-os, env.USING_COVERAGE_OS)"
159163
uses: "codecov/[email protected]"
160164
with:
161165
file: ./.tox/coverage.xml

0 commit comments

Comments
 (0)