Skip to content

Commit

Permalink
Split tests for rpacket tracking, move codecov detection for now
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Jul 15, 2024
1 parent d9a455d commit e4a84bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,22 @@ jobs:
echo "TARDIS_PIP_PATH=$directory_path" >> $GITHUB_ENV
- name: Run tests
run: pytest tardis ${{ env.PYTEST_FLAGS }} -m "not continuum"
run: pytest tardis ${{ env.PYTEST_FLAGS }} -m "not (continuum or rpacket_tracking)"
working-directory: ${{ env.TARDIS_PIP_PATH }}
if: always()

- name: Upload to Codecov
run: bash <(curl -s https://codecov.io/bash)

- name: Run continuum tests
run: pytest tardis ${{ env.PYTEST_FLAGS }} -m continuum
working-directory: ${{ env.TARDIS_PIP_PATH }}
if: always()

- name: Upload to Codecov
run: bash <(curl -s https://codecov.io/bash)
- name: Run rpacket tracking tests
run: pytest tardis ${{ env.PYTEST_FLAGS }} -m rpacket_tracking
working-directory: ${{ env.TARDIS_PIP_PATH }}
if: always()

- name: Refdata Generation tests
run: pytest tardis ${{ env.PYTEST_FLAGS }} --generate-reference
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ text_file_format = "rst"
markers = [
# continuum tests
"continuum",
# rpacket tracking tests
"rpacket_tracking"
]

[tool.tardis]
Expand Down
1 change: 1 addition & 0 deletions tardis/visualization/tools/tests/test_rpacket_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def simulation_simple(config_verysimple, atomic_dataset):
return sim


@pytest.mark.rpacket_tracking
class TestRPacketPlotter:
"""Test the RPacketPlotter class."""

Expand Down

0 comments on commit e4a84bd

Please sign in to comment.