Skip to content

Commit

Permalink
Use environment name and python version in micromamba downloads key
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclary committed Dec 11, 2024
1 parent 4e6b925 commit f61c46a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-subrepos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
--channel-priority=flexible
python=${{ matrix.python-version }}
cache-downloads: true
cache-downloads-key: micromamba-downloads-spy-inst-${{ matrix.PYTHON_VERSION }}
cache-environment: true

- name: Build ${{ matrix.pkg }} Conda Package
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/installers-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ jobs:
python=${{ matrix.python-version }}
nsis>=3.08=*_log_*
cache-downloads: true
cache-downloads-key: micromamba-downloads-spy-inst-${{ matrix.PYTHON_VERSION }}
cache-environment: true

- name: Setup Build Environment (macOS & Linux)
Expand All @@ -233,6 +234,7 @@ jobs:
--channel-priority=flexible
python=${{ matrix.python-version }}
cache-downloads: true
cache-downloads-key: micromamba-downloads-spy-inst-${{ matrix.PYTHON_VERSION }}
cache-environment: true

- name: Env Variables
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ jobs:
environment-file: requirements/main.yml
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
- name: Install additional dependencies
shell: bash -l {0}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
environment-file: requirements/main.yml
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
- name: Create pip test environment
if: env.USE_CONDA != 'true'
Expand All @@ -131,6 +132,7 @@ jobs:
micromamba-version: '1.5.10-0'
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
condarc: |
channels:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ jobs:
environment-file: requirements/main.yml
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
- name: Install additional dependencies
shell: bash -l {0}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-remoteclient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
environment-file: requirements/main.yml
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
- name: Create pip test environment
if: env.USE_CONDA != 'true'
Expand All @@ -125,6 +126,7 @@ jobs:
micromamba-version: '1.5.10-0'
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
condarc: |
channels:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
environment-file: requirements/main.yml
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
- name: Create pip test environment
if: env.USE_CONDA != 'true'
Expand All @@ -121,6 +122,7 @@ jobs:
micromamba-version: '1.5.10-0'
environment-name: test
cache-downloads: true
cache-downloads-key: micromamba-downloads-test-${{ matrix.PYTHON_VERSION }}
create-args: python=${{ matrix.PYTHON_VERSION }}
condarc: |
channels:
Expand Down

0 comments on commit f61c46a

Please sign in to comment.