Skip to content

Commit

Permalink
Add r packet tracking mark
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Jul 17, 2024
1 parent 676a49f commit 16672c7
Showing 1 changed file with 9 additions and 30 deletions.
39 changes: 9 additions & 30 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ jobs:
verbose: true

tests:
name: ${{ matrix.continuum }} continuum ${{ matrix.os }}
name: ${{ matrix.continuum }} continuum ${{ matrix.rpacket_tracking }} rpacket_tracking ${{ matrix.os }}
if: github.repository_owner == 'tardis-sn'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
label: [osx-arm64, linux-64]
continuum: ['not', '']
rpacket_tracking: ['not', '']
exclude:
- continuum: ''
rpacket_tracking: ''
include:
- label: osx-arm64
os: macos-latest
Expand All @@ -87,33 +91,8 @@ jobs:
pip install -e . --user
- name: Run tests
run: pytest tardis ${{ env.PYTEST_FLAGS }} -m "${{ matrix.continuum }} continuum"
run: pytest tardis ${{ env.PYTEST_FLAGS }} -m "${{ matrix.continuum }} continuum and ${{ matrix.rpacket_tracking }} rpacket_tracking"

# - name: Set install path
# if: matrix.pip == false
# run: |
# directory_path="."
# echo "TARDIS_PIP_PATH=$directory_path" >> $GITHUB_ENV

- name: Run tests
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: 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
# working-directory: ${{ env.TARDIS_PIP_PATH }}
# if: contains(github.event.pull_request.labels.*.name, 'run-generation-tests') || github.ref == 'refs/heads/master'
- name: Refdata Generation tests
run: pytest tardis ${{ env.PYTEST_FLAGS }} --generate-reference -m "${{ matrix.continuum }} continuum and ${{ matrix.rpacket_tracking }} rpacket_tracking"
if: contains(github.event.pull_request.labels.*.name, 'run-generation-tests') || github.ref == 'refs/heads/master'

0 comments on commit 16672c7

Please sign in to comment.