Skip to content

Commit

Permalink
Fixlocks (#470)
Browse files Browse the repository at this point in the history
* Relax numpy pin : cf #472

* Modernise base env for lock creation.
  • Loading branch information
pp-mo authored Sep 24, 2024
1 parent cc0ea12 commit 7d8c497
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci-locks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/cache@v4.0.2
env:
# Increment the build number to force a cache refresh.
CACHE_BUILD: 2
CACHE_BUILD: 5
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-pkgs-${{ env.ENV_NAME }}-p${{ env.CACHE_PERIOD }}-b${{ env.CACHE_BUILD }}
Expand All @@ -52,17 +52,16 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
channels: conda-forge,defaults
channels: conda-forge
activate-environment: ${{ env.ENV_NAME }}
auto-update-conda: true
use-only-tar-bz2: true

- name: "Conda environment cache"
id: conda-env-cache
uses: actions/cache@v4.0.2
env:
# Increment the build number to force a cache refresh.
CACHE_BUILD: 2
CACHE_BUILD: 5
with:
path: ${{ env.CONDA }}/envs/${{ env.ENV_NAME }}
key: ${{ runner.os }}-conda-env-${{ env.ENV_NAME }}-p${{ env.CACHE_PERIOD }}-b${{ env.CACHE_BUILD }}
Expand All @@ -81,7 +80,7 @@ jobs:
uses: actions/cache@v4.0.2
env:
# Increment the build number to forece a cache refresh.
CACHE_BUILD: 2
CACHE_BUILD: 5
TOX_INI: ${{ github.workspace }}/tox.ini
with:
path: ${{ github.workspace }}/.tox
Expand Down
2 changes: 1 addition & 1 deletion requirements/cf-units.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
# core dependencies
- antlr-python-runtime 4.11.1.* # To update this, see cf_units/_udunits2_parser/README.md
- cftime>=1.2
- numpy==1.26.4
- numpy<2
- udunits2

# test dependencies
Expand Down

0 comments on commit 7d8c497

Please sign in to comment.