Skip to content

Commit c137756

Browse files
committed
add an exact file and use with coveralls
1 parent 1dcade3 commit c137756

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/testing.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@ jobs:
1919
with:
2020
python-version: 3.8
2121
poetry-version: 1.2.2
22-
23-
- name: Install dependencies
24-
run:
25-
python -m pip install pytest coverage coveralls
26-
22+
2723
# Run pytest with coverage report and upload results to coveralls
2824
- name: Run tests on python 3.8
2925
run: |
30-
coverage run -m pytest --full-trace --show-capture=no -sv tests
26+
poetry run pytest --cov --cov-report xml:cobertura.xml --full-trace --show-capture=no -sv -n auto tests/
3127
32-
- name: Submit to coveralls
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
run: |
36-
coveralls --service=github
28+
- name: Coveralls
29+
uses: coverallsapp/github-action@v2
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
file: ./cobertura.xml

0 commit comments

Comments
 (0)