Skip to content

Commit 6588c4c

Browse files
committed
ci: update to run on OSX and Windows
Signed-off-by: Paul Horton <[email protected]>
1 parent ee5d36d commit 6588c4c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/poetry.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ jobs:
4444
run: poetry run tox -e flake8
4545

4646
build-and-test:
47-
name: Build & Test (Python ${{ matrix.python-version }}
48-
runs-on: ubuntu-latest
47+
name: Build & Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
48+
runs-on: ${{ matrix.os }}
4949
env:
5050
REPORTS_ARTIFACT: tests-reports
5151
strategy:
5252
fail-fast: false
5353
matrix:
54+
os: [ubuntu-latest, windows-latest, macos-latest]
5455
python-version:
5556
- "3.9" # highest supported
5657
- "3.8"
@@ -77,7 +78,7 @@ jobs:
7778
- uses: actions/cache@v2
7879
with:
7980
path: ~/.cache/pypoetry/virtualenvs
80-
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
81+
key: ${{ runner.os }}}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
8182
- name: Install dependencies
8283
run: poetry install
8384
- name: Ensure build successful
@@ -87,7 +88,7 @@ jobs:
8788
- name: Generate coverage reports
8889
run: >
8990
poetry run coverage report &&
90-
poetry run coverage xml -o ${{ env.REPORTS_DIR }}/coverage.xml &&
91+
poetry run coverage xml -o ${{ env.REPORTS_DIR }}/coverage-${{ matrix.os }}-${{ matrix.python-version }}.xml &&
9192
poetry run coverage html -d ${{ env.REPORTS_DIR }}
9293
- name: Artifact reports
9394
if: ${{ ! cancelled() }}

0 commit comments

Comments
 (0)