File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,20 @@ jobs:
42
42
uses : Gr1N/setup-poetry@v7
43
43
with :
44
44
poetry-version : 1.1.8
45
+ - uses : actions/cache@v2
46
+ with :
47
+ path : ~/.cache/pypoetry/virtualenvs
48
+ key : ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
45
49
- name : Install dependencies
46
50
run : poetry install
47
51
- name : Ensure build successful
48
52
run : poetry build
49
53
- name : Run tox
50
- run : tox
54
+ run : poetry run tox
51
55
- name : Generate coverage reports
52
56
run : >
53
- coverage report && coverage xml -o ${{ env.REPORTS_DIR }}/coverage.xml &&
54
- coverage html -d ${{ env.REPORTS_DIR }}
57
+ poetry run coverage report && coverage xml -o ${{ env.REPORTS_DIR }}/coverage.xml &&
58
+ poetry run coverage html -d ${{ env.REPORTS_DIR }}
55
59
- name : Artifact reports
56
60
if : ${{ ! cancelled() }}
57
61
# see https://github.com/actions/upload-artifact
You can’t perform that action at this time.
0 commit comments