Skip to content

Commit

Permalink
Pin micromamba <v2; update cache action (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering authored Oct 3, 2024
1 parent b74f902 commit 8665cbe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/actions/create-mamba-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
- name: Cache Mamba env
id: cache
if: inputs.cache_mamba_env == 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: conda-env.lock
key: ${{ steps.get-refresh-timestamp.outputs.timestamp }}-${{ steps.get-env-hash.outputs.hash }}
Expand Down Expand Up @@ -84,4 +84,4 @@ runs:
- name: Create lockfile
if: steps.cache.outputs.cache-hit != 'true'
run: mamba list --explicit > conda-env.lock
shell: bash -l {0}
shell: bash -l {0}
4 changes: 2 additions & 2 deletions .github/workflows/conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
micromamba-version: '1.5.10-0'
environment-name: condabuild
create-args: >-
python=3.11
Expand Down Expand Up @@ -104,4 +104,4 @@ jobs:
name: conda-build-${{ matrix.os }}-${{ inputs.package_name }}-${{ inputs.version }}
path: ${{ env.MAMBA_ROOT_PREFIX }}/envs/condabuild/conda-bld/
retention-days: 3
if-no-files-found: error
if-no-files-found: error
4 changes: 2 additions & 2 deletions .github/workflows/conda-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
micromamba-version: '1.5.10-0'
environment-name: condaupload
create-args: >-
python=3.11
Expand Down Expand Up @@ -68,4 +68,4 @@ jobs:
- name: Upload to anaconda
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
run: find ${{ runner.temp }}/conda_builds -path "**/${{ inputs.package_name }}-${{ env.VERSION }}-*.tar.bz2" -exec anaconda upload {} +
run: find ${{ runner.temp }}/conda_builds -path "**/${{ inputs.package_name }}-${{ env.VERSION }}-*.tar.bz2" -exec anaconda upload {} +
6 changes: 3 additions & 3 deletions .github/workflows/pip-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
micromamba-version: '1.5.10-0'
environment-name: pipbuild
create-args: >-
python=3.11
Expand All @@ -77,7 +77,7 @@ jobs:
steps:
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
micromamba-version: '1.5.10-0'
environment-name: pipinstall
create-args: >-
python=3.11
Expand All @@ -103,7 +103,7 @@ jobs:
steps:
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
micromamba-version: '1.5.10-0'
environment-name: pipinstall
create-args: >-
python=3.11
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/template-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
micromamba-version: '1.5.10-0'
environment-name: ${{ github.event.repository.name }}-cruft
create-args: cruft python=3.11
post-cleanup: all
Expand All @@ -26,4 +26,4 @@ jobs:
- name: Check project against template
id: check
run: cruft check
run: cruft check

0 comments on commit 8665cbe

Please sign in to comment.