Skip to content

Commit

Permalink
ci(actions): cache mamba conda downloads and environment (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored Jul 19, 2022
1 parent 262c53a commit 54b208b
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-check-warnings-gfortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Setup symbolic links on Linux
run: |
Expand Down Expand Up @@ -61,6 +64,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Setup symbolic links on Linux
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Install additional packages for Sphinx using pip
run: |
Expand Down Expand Up @@ -126,6 +129,9 @@ jobs:
- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Print python package versions
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Setup symbolic links on Linux
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-large-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: set FC=ifort environmental variable
if: matrix.FC == 'ifort'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests-gfortran-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Print python package versions
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests-gfortran-previous-endoflife.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Set up gfortran ${{ matrix.GCC_V }}
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests-gfortran-previous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Set up gfortran ${{ matrix.GCC_V }}
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-tests-ifort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:

- name: Install Conda environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-env: true

- name: Print python package versions
run: |
Expand Down

0 comments on commit 54b208b

Please sign in to comment.