Skip to content

Commit

Permalink
Try some alternate syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Jul 17, 2024
1 parent 3522874 commit b4469e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
steps:
- name: Restore cached HOOMD-blue build
id: cache
uses: actions/cache/restore@v4
uses: actions/cache@v4
with:
path: install
key: hoomd-blue-${{ env.HOOMD_BLUE_VERSION }}-mpi-${{ matrix.enable_mpi }}-gpu-${{ matrix.enable_gpu }}
Expand Down Expand Up @@ -119,8 +119,7 @@ jobs:
uses: actions/cache/save@v4
with:
path: install
key: ${{ steps.cache.outputs.cache-primary-key }}

key: hoomd-blue-${{ env.HOOMD_BLUE_VERSION }}-mpi-${{ matrix.enable_mpi }}-gpu-${{ matrix.enable_gpu }}
- name: Checkout component
uses: actions/checkout@v4
with:
Expand All @@ -132,7 +131,7 @@ jobs:
working-directory: build-component

- name: Run pytest (serial)
run: python3 -m pytest --pyargs hoomd.${COMPONENT_NAME} -x -v -ra --durations=0 --durations-min=0.1
run: python3 -m pytest --pyargs hoomd -k "hoomd.${COMPONENT_NAME}" -x -v -ra --durations=0 --durations-min=0.1
- name: Run pytest (MPI)
if: ${{ matrix.enable_mpi == 'ON' }}
run: mpirun -n 2 ${GITHUB_WORKSPACE}/install/hoomd/pytest/pytest-openmpi.sh --pyargs hoomd.${COMPONENT_NAME} -x -v -ra --durations=0 --durations-min=0.1 || (( cat pytest.out.1 && exit 1 ))
run: mpirun -n 2 ${GITHUB_WORKSPACE}/install/hoomd/pytest/pytest-openmpi.sh --pyargs hoomd -k "hoomd.${COMPONENT_NAME}" -x -v -ra --durations=0 --durations-min=0.1 || (( cat pytest.out.1 && exit 1 ))

0 comments on commit b4469e8

Please sign in to comment.