Skip to content

Commit

Permalink
ci: try to get codecov working (#62)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Oct 8, 2024
1 parent d61a152 commit e2080a8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment: false
codecov:
notify:
after_n_builds: 8
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,15 @@ jobs:
- name: Test package
run: uvx nox -s coverage

- name: Prepare environment for codecov
run: uv tool install coverage

- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
plugin: pycoverage
name: Python ${{ matrix.python-version}}

dist:
name: Distribution build
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def coverage(session: nox.Session) -> None:

session.posargs.extend(
[
"--cov",
"--cov-config=pyproject.toml",
"--cov-report=xml",
"--cov-report=term-missing",
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ dev-dependencies = ["check-sdist[test]"]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
filterwarnings = [
"error",
"ignore:sys.monitoring isn't available:coverage.exceptions.CoverageWarning",
]
log_cli_level = "INFO"
testpaths = [
"tests",
Expand Down

0 comments on commit e2080a8

Please sign in to comment.