Skip to content

Commit

Permalink
ci: upload to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
derlin committed Mar 17, 2024
1 parent 82808e8 commit 600381b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,27 @@ jobs:

- name: Build
run: make build

- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage
path: .artifacts/

- name: CodeCov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: derlin/cape
files: .artifacts/coverage.xml
disable_search: true
# Put a plugin we don't use, to ensure it doesn't try
# to generate its own coverage.xml using the pycoverage plugin
plugins: xcode
verbose: true

- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-after
path: .artifacts/
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# fixes:
# - "::/home/runner/work/cape/cape/"
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ exclude=['tests*']

[tool.check-manifest]
ignore = [
"tox.ini",
"Makefile",
"cape/version.py",
"codecov.yml",
"docker-compose.yml",
"Makefile",
"tox.ini",
]


Expand Down

0 comments on commit 600381b

Please sign in to comment.