Skip to content

Commit 36efe18

Browse files
committed
Fix code coverage step
1 parent 7bc4528 commit 36efe18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Python
2626
uses: actions/setup-python@v2
2727
with:
28-
python-version: "3.x"
28+
python-version: "3.7"
2929

3030
- name: Install global dependencies
3131
run: python -m pip install -U pip setuptools wheel
@@ -40,10 +40,10 @@ jobs:
4040
run: pip install .
4141

4242
- name: Run tests
43-
run: coverage run --source src -m unittest discover -s tests -v
43+
run: coverage run -m unittest discover -s tests -v
4444

4545
- name: Generate coverage report
46-
run: coverage report
46+
run: coverage report && coverage xml -i
4747

4848
- name: Upload coverage report to Codecov
4949
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)