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:
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"
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
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() }}
You can’t perform that action at this time.
0 commit comments