@@ -22,53 +22,15 @@ jobs:
2222 poetry install
2323 - name : Run tests
2424 id : run-tests
25- continue-on-error : true
2625 run : >
2726 poetry run pytest \
2827 --junitxml=pytest.xml \
2928 --cov-report=term-missing:skip-covered \
3029 --cov-report=xml:coverage.xml \
3130 --cov=src tests \
32- > ./pytest-coverage.txt;
33- cat ./pytest-coverage.txt;
34- - name : Upload pytest coverage artifacts.
35- uses : actions/upload-artifact@v3
36- with :
37- name : pytest-coverage
38- path : ./pytest-coverage.txt
39- - name : Upload pytest junitxml artifacts.
40- uses : actions/upload-artifact@v3
41- with :
42- name : pytest-junitxml
43- path : pytest.xml
44- - name : Checking testing success.
45- if : steps.run-tests.outcome != 'success'
46- run : exit 1;
47-
48- coverage :
49- runs-on : ubuntu-latest
50- needs : unit
51- if : success() || failure()
52- permissions :
53- contents : read
54- pull-requests : write
55- steps :
56- - name : Get pytest artifacts
57- uses : actions/download-artifact@v3
58- with :
59- name : pytest-coverage
60- - name : Get pytest junitxml artifacts
61- uses : actions/download-artifact@v3
62- with :
63- name : pytest-junitxml
64- - name : Pytest coverage comment
65- if : github.event_name == 'pull_request'
66- uses : MishaKav/pytest-coverage-comment@main
67- with :
68- pytest-coverage-path : ./pytest-coverage.txt
69- junitxml-path : ./pytest.xml
31+ --log-level=DEBUG \
32+ --verbose
7033 - name : Upload coverage to Codecov
71- if : success() || failure()
7234 uses : codecov/codecov-action@v3
7335 with :
7436 token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments