Skip to content

Commit

Permalink
don't cache the env
Browse files Browse the repository at this point in the history
  • Loading branch information
srosenbu committed Jan 24, 2024
1 parent 4edabeb commit 5ff3dd8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
- name: Set cache date
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV

- uses: actions/cache@v2
with:
path: "/usr/share/miniconda3/envs/fenics-constitutive"
key: conda-${{ hashFiles('environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
id: cache
#- uses: actions/cache@v2
# with:
# path: "/usr/share/miniconda3/envs/fenics-constitutive"
# key: conda-${{ hashFiles('environment.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
# id: cache

- name: Update environment
run: mamba env update -n fenics-constitutive -f environment.yml
if: steps.cache.outputs.cache-hit != 'true'
#if: steps.cache.outputs.cache-hit != 'true'

- name: pytest
id : pytest
Expand Down

0 comments on commit 5ff3dd8

Please sign in to comment.