Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
shell: bash
run: |
apt -y update
apt install -y python3-venv
apt install -y python3-venv curl
python -m venv venv
source venv/bin/activate

Expand All @@ -38,4 +38,10 @@ jobs:

- name: Test
shell: bash
run: pytest -rs tests
run: pytest --cov=openmc_mcnp_adapter --cov-branch --cov-report=xml -rs tests

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: openmc-dev/openmc_mcnp_adapter
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ classifiers = [
]

[project.optional-dependencies]
test = ["pytest"]
test = ["pytest", "pytest-cov"]

[project.urls]
"Bug Tracker" = "https://github.com/openmc-dev/openmc_mcnp_adapter/issues"
Expand Down
Empty file added tests/__init__.py
Empty file.