Skip to content

Commit

Permalink
fixed cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Feb 21, 2024
1 parent e049ec5 commit c8e0b70
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ jobs:
run: |
sudo apt update
sudo apt install openmpi-bin libopenmpi-dev
- name: Verify cache paths
run: |
echo ${{ github.workspace }}/simulators/nest
echo $GITHUB_WORKSPACE/simulators/nest
- name: Cache NEST
id: cache-nest
Expand All @@ -38,7 +34,7 @@ jobs:

- name: Install NEST
if: steps.cache-nest.outputs.cache-hit != 'true'
run: .github/devops/install-nest.sh ${NEST_VERSION} $GITHUB_WORKSPACE/simulators/nest
run: .github/devops/install-nest.sh ${NEST_VERSION} ${{ github.workspace }}/simulators/nest

- name: Install dependencies & self
run: |
Expand All @@ -47,11 +43,6 @@ jobs:
pip install .[test,parallel]
- name: Run tests & coverage
run: |
source $GITHUB_WORKSPACE/simulators/nest/bin/nest_vars.sh
source ${{ github.workspace }}/simulators/nest/bin/nest_vars.sh
coverage run -p -m unittest discover -v -s ./tests
mpiexec -n 2 coverage run -p -m unittest discover -v -s ./tests
- name: Verify cache exists
run: |
echo ${{ github.workspace }}/simulators/nest
echo $GITHUB_WORKSPACE/simulators/nest
ls $GITHUB_WORKSPACE/simulators/nest
mpiexec -n 2 coverage run -p -m unittest discover -v -s ./tests

0 comments on commit c8e0b70

Please sign in to comment.