Skip to content

Commit

Permalink
Merge pull request #70 from scrapinghub/coverage
Browse files Browse the repository at this point in the history
Add coverage upload.
  • Loading branch information
wRAR authored Feb 5, 2025
2 parents c99cfcb + 95eecec commit e79bfde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ jobs:
pip install -U tox
tox
- name: Upload coverage report
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pre-commit/[email protected]
- uses: pre-commit/[email protected]
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deps =

commands =
py.test \
--cov-report=term --cov-report= --cov=price_parser \
--cov-report=term --cov-report= --cov-report=xml --cov=price_parser \
--doctest-modules \
{posargs:price_parser tests README.rst}

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

0 comments on commit e79bfde

Please sign in to comment.