Skip to content

Commit e79bfde

Browse files
authored
Merge pull request #70 from scrapinghub/coverage
Add coverage upload.
2 parents c99cfcb + 95eecec commit e79bfde

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ jobs:
4444
pip install -U tox
4545
tox
4646
47+
- name: Upload coverage report
48+
uses: codecov/codecov-action@v5
49+
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}
51+
4752
pre-commit:
4853
runs-on: ubuntu-latest
4954
steps:
5055
- uses: actions/checkout@v4
51-
- uses: pre-commit/action@v3.0.0
56+
- uses: pre-commit/action@v3.0.0

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ deps =
88

99
commands =
1010
py.test \
11-
--cov-report=term --cov-report= --cov=price_parser \
11+
--cov-report=term --cov-report= --cov-report=xml --cov=price_parser \
1212
--doctest-modules \
1313
{posargs:price_parser tests README.rst}
1414

@@ -21,4 +21,4 @@ commands = mypy -v --ignore-missing-imports --no-warn-no-return price_parser tes
2121
[testenv:pre-commit]
2222
deps = pre-commit
2323
commands = pre-commit run --all-files --show-diff-on-failure
24-
skip_install = true
24+
skip_install = true

0 commit comments

Comments
 (0)