Skip to content

Commit

Permalink
Add coverage tool (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane authored Sep 30, 2023
1 parent f57aef2 commit a2de7f4
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 7 deletions.
Binary file added .coverage
Binary file not shown.
6 changes: 6 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
comment: false
codecov:
branch: main
require_ci_to_pass: false
notify:
wait_for_ci: false
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
- name: Test
run: nox -s tests-${{ matrix.python-version }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- uses: actions/upload-artifact@v2
if: success() || failure()
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ sphinx_js.egg-info/
.vscode
.DS_Store
venv
.venv
coverage.xml
test-results.xml
8 changes: 7 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ def tests(session: Session) -> None:
session.run(
"npm", "i", "--no-save", "[email protected]", "[email protected]", external=True
)
session.run("pytest", "--junitxml=test-results.xml")
session.run(
"pytest",
"--junitxml=test-results.xml",
"--cov=sphinx_js",
"--cov-report",
"xml",
)


@nox.session(python=["3.11"])
Expand Down
11 changes: 5 additions & 6 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
-e .

build==0.9.0
pytest==7.2.0
recommonmark==0.7.1
nox
twine==4.0.2
beautifulsoup4
build
nox
pytest-cov
recommonmark
twine

0 comments on commit a2de7f4

Please sign in to comment.