Skip to content

Commit 9af0c85

Browse files
committed
ci: set $TOXENV and take coverage after tests run successfully
1 parent 91db683 commit 9af0c85

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/windows-ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,27 @@ on: [push, pull_request]
33

44
jobs:
55
ci:
6+
name: Run tests
7+
env:
8+
TOXENV: py38-coverage
69
runs-on: windows-latest
710
steps:
811
- uses: actions/checkout@v2
912
- uses: actions/setup-python@v1
10-
- run: pip install tox
13+
- name: Install tox
14+
run: |
15+
python -m pip install --upgrade pip
16+
pip install tox
1117
- name: Run tests
1218
run: tox
1319
env:
1420
PYTEST_ADDOPTS: '-vv'
21+
- name: Generate coverage report
22+
run: |
23+
.tox/$TOXENV/bin/coverage report -m
24+
.tox/$TOXENV/bin/coverage xml
25+
# TODO: Set secrets.CODECOV_TOKEN from repositroy settings and uncomment this
26+
# - uses: codecov/codecov-action@v1
27+
# with:
28+
# token: ${{ secrets.CODECOV_TOKEN }}
29+
# yml: .codecov.yml

0 commit comments

Comments
 (0)