Skip to content

Commit

Permalink
add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz committed Feb 29, 2024
1 parent 6c086c9 commit 5d9d44a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
run: poetry install
- name: Run tests
run: poetry run pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: cov.xml

check:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ __pycache__/
*.py[cod]
*$py.class
.coverage
cov.xml
dist/
.direnv/
result*
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ pytest-cov = "^4.1.0"
pyright = "1.1.352"

[tool.pytest.ini_options]
addopts = "--cov=vatsim"
addopts = [
"--cov-report=term",
"--cov-report=xml:cov.xml",
"--cov=vatsim",
]
testpaths = [
"tests",
]
Expand Down

0 comments on commit 5d9d44a

Please sign in to comment.