File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,14 @@ jobs:
44
44
run : poetry run tox -e flake8
45
45
46
46
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 }}
49
49
env :
50
50
REPORTS_ARTIFACT : tests-reports
51
51
strategy :
52
52
fail-fast : false
53
53
matrix :
54
+ os : [ubuntu-latest, windows-latest, macos-latest]
54
55
python-version :
55
56
- " 3.9" # highest supported
56
57
- " 3.8"
77
78
- uses : actions/cache@v2
78
79
with :
79
80
path : ~/.cache/pypoetry/virtualenvs
80
- key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
81
+ key : ${{ runner.os }}}-${{ matrix.python-version }} -poetry-${{ hashFiles('poetry.lock') }}
81
82
- name : Install dependencies
82
83
run : poetry install
83
84
- name : Ensure build successful
87
88
- name : Generate coverage reports
88
89
run : >
89
90
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 &&
91
92
poetry run coverage html -d ${{ env.REPORTS_DIR }}
92
93
- name : Artifact reports
93
94
if : ${{ ! cancelled() }}
You can’t perform that action at this time.
0 commit comments