diff --git a/.github/workflows/gh-ci-tests.yaml b/.github/workflows/gh-ci-tests.yaml index ab02e4dd0..72f9a3d36 100644 --- a/.github/workflows/gh-ci-tests.yaml +++ b/.github/workflows/gh-ci-tests.yaml @@ -29,12 +29,19 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Get current date + id: date + run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" + - name: setup micromamba uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml environment-name: mda-user-guide cache-environment: true + cache-downloads: true + cache-environment-key: environment-${{ steps.date.outputs.date }} + cache-downloads-key: downloads-${{ steps.date.outputs.date }} create-args: >- hole2 diff --git a/.github/workflows/gh-ci.yaml b/.github/workflows/gh-ci.yaml index 35f5a673f..e2a7c49fb 100644 --- a/.github/workflows/gh-ci.yaml +++ b/.github/workflows/gh-ci.yaml @@ -37,11 +37,20 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Get current date + id: date + run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" + - name: setup micromamba uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml environment-name: mda-user-guide + cache-environment: true + cache-downloads: true + cache-environment-key: environment-${{ steps.date.outputs.date }} + cache-downloads-key: downloads-${{ steps.date.outputs.date }} + - name: install_deps run: |