Skip to content

Commit

Permalink
Merge pull request #106 from fusion-energy/upload-codecov
Browse files Browse the repository at this point in the history
Upload coverage to codecov
  • Loading branch information
shimwell authored Nov 26, 2024
2 parents e8351f0 + cd8d432 commit c3cb01e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
- name: Run tests
shell: bash -l {0}
run: |
pytest -v tests
pytest tests --cov opennmc_plasma_source --cov-report xml --cov-report term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Run examples
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ write_to = "src/_version.py"
[project.optional-dependencies]
tests = [
"pytest>=5.4.3",
"pytest-cov",
"hypothesis",
"NeSST>=1.1.0",
"openmc_source_plotter"
Expand Down

0 comments on commit c3cb01e

Please sign in to comment.