Skip to content

Commit 28c448a

Browse files
committed
Adds coverage report to GitHub actions.
1 parent c5e0d87 commit 28c448a

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
permissions:
1111
id-token: write
1212
contents: write
13+
pull-requests: write
1314
jobs:
1415
test:
1516
strategy:
@@ -34,6 +35,11 @@ jobs:
3435
- run: make lint
3536
- run: python setup.py --version
3637
- run: make test-${{ matrix.python-version }}
38+
- if: matrix.python-version == '3.8'
39+
uses: orgoro/coverage@v3
40+
with:
41+
coverageFile: coverage.xml
42+
token: ${{ secrets.GITHUB_TOKEN }}
3743
prerelease-test:
3844
runs-on: ubuntu-latest
3945
continue-on-error: true

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@
2525
htmlcov
2626
test-home/
2727
venv
28+
coverage.xml

scripts/runtests

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ set -o errexit
33
set -o pipefail
44
set -o xtrace
55

6-
: "${PYTEST_ARGS:=-vv --cov=rsconnect --cov-report=term --cov-report=html}"
6+
: "${PYTEST_ARGS:=-vv --cov=rsconnect --cov-report=term --cov-report=html --cov-report=xml}"
77
pytest ${PYTEST_ARGS} --mypy ./tests/

0 commit comments

Comments
 (0)