Skip to content

Commit

Permalink
CI: Add code coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 10, 2023
1 parent 81b0fbb commit 68f9a7e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@ jobs:
- name: Run linter and software tests
run: |
poe check
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
.eggs
__pycache__
dist
.coverage
coverage.xml
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ install_types = true
non_interactive = true

[tool.pytest.ini_options]
#addopts = "-rA --verbosity=3 --cov --cov-report=term-missing --cov-report=xml"
addopts = "-rA --verbosity=3"
addopts = """
-rfEX -p pytester --strict-markers --verbosity=3
--cov --cov-report=term-missing --cov-report=xml
"""
minversion = "2.0"
log_level = "DEBUG"
log_cli_level = "DEBUG"
Expand Down

0 comments on commit 68f9a7e

Please sign in to comment.