Skip to content

Commit

Permalink
migrate workflows to micromambe
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbuntemeyer committed Apr 5, 2024
1 parent 26810b0 commit 02642ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cfchecks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ jobs:
echo "CONDA_ENV_FILE=ci/environment.yml" >> $GITHUB_ENV
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
- name: Create conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
micromamba-version: 'latest'
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
environment-file: ci/environment.yml
extra-specs: |
create-args: >-
python=${{ matrix.python-version }}
- name: Version info
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/deploy-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ jobs:
echo "CONDA_ENV_FILE=ci/environment.yml" >> $GITHUB_ENV
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
- name: Create conda environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
micromamba-version: 'latest'
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}"
environment-file: examples/environment.yml
extra-specs: |
create-args: >-
python=${{ matrix.python-version }}
- name: Version info
run: |
Expand Down

0 comments on commit 02642ee

Please sign in to comment.