From 51fe02f1d7e837fe40d0f62016bfcac26378aa8e Mon Sep 17 00:00:00 2001 From: jorgensd Date: Thu, 25 Apr 2024 22:40:27 +0200 Subject: [PATCH] Try setting working directory in test --- .github/workflows/test_redhat.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_redhat.yml b/.github/workflows/test_redhat.yml index f99d896..99d475d 100644 --- a/.github/workflows/test_redhat.yml +++ b/.github/workflows/test_redhat.yml @@ -58,21 +58,23 @@ jobs: uses: actions/download-artifact@v4 with: name: legacy_ompi - path: ./legacy + path: ./tests/legacy - name: Download legacy data uses: actions/download-artifact@v4 with: name: legacy_checkpoint_ompi - path: ./legacy_checkpoint + path: ./tests/legacy_checkpoint - name: Install package run: python3 -m pip install .[test] - name: Run tests + working-directory: ./tests run: | - coverage run --rcfile=.coveragerc -m mpi4py -m pytest -xvs ./tests/ + coverage run --rcfile=.coveragerc -m mpi4py -m pytest -xvs . - name: Run tests in parallel + working-directory: ./tests run: | - mpirun -n 4 coverage run --rcfile=.coveragerc -m mpi4py -m pytest -xvs ./tests/ + mpirun -n 4 coverage run --rcfile=.coveragerc -m mpi4py -m pytest -xvs .