Skip to content

Commit

Permalink
Merge pull request #403 from blaylockbk/399-ci-why-are-tests-failing
Browse files Browse the repository at this point in the history
Remove pygrib as a dependency; manually parse coordinate reference system from eccodes keys
  • Loading branch information
blaylockbk authored Feb 5, 2025
2 parents f4f8aa0 + 968aea6 commit a96cbf5
Show file tree
Hide file tree
Showing 16 changed files with 6,102 additions and 92 deletions.
82 changes: 46 additions & 36 deletions .github/workflows/tests-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,59 +38,69 @@ jobs:
with:
fetch-depth: 2

- name: CACHING - Anaconda packages
uses: actions/cache@v3
id: cache-pkg
with:
path: ~/conda_pkgs_dir
key:
conda-pkg-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{
env.CACHE_NUMBER }}-${{ hashFiles('environment-test.yml') }}
env:
# Increase this value if `environment-test.yml` has not changed,
# but you still want to reset the cache.
CACHE_NUMBER: 0
#- name: CACHING - Anaconda packages
# uses: actions/cache@v3
# id: cache-pkg
# with:
# path: ~/conda_pkgs_dir
# key:
# conda-pkg-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{
# env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
# env:
# # Increase this value if `environment.yml` has not changed,
# # but you still want to reset the cache.
# CACHE_NUMBER: 0

- name: INSTALL - Anaconda setup (Mambaforge)
uses: conda-incubator/setup-miniconda@v2
- name: INSTALL - Conda/Mamba setup (Miniforge)
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
miniforge-version: latest
mamba-version: "*"
use-mamba: true
channels: conda-forge,defaults
channels: conda-forge
conda-remove-defaults: "true"
channel-priority: true
activate-environment: herbie-test
environment-file: ci/environment.yml
auto-activate-base: false
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
#use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!

#- name: CACHING - Anaconda environment
# uses: actions/cache@v3
# id: cache-env
# with:
# path: ${{ env.CONDA }}/envs
# key:
# conda-env-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{
# env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
# env:
# # Increase this value if `ci/environment.yml` has not changed,
# # but you still want to reset the cache.
# CACHE_NUMBER: 0

- name: DEBUG - mamba info
run: |
mamba --version
mamba info
- name: DEBUG - mamba list
run: mamba list

- name: DEBUG - mamba configuration
run: mamba config --show

- name: CACHING - Anaconda environment
uses: actions/cache@v3
id: cache-env
with:
path: ${{ env.CONDA }}/envs
key:
conda-env-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{
env.CACHE_NUMBER }}-${{ hashFiles('environment-test.yml') }}
env:
# Increase this value if `environment-test.yml` has not changed,
# but you still want to reset the cache.
CACHE_NUMBER: 0

- name: DEBUG - Anaconda info
run: conda info
- name: DEBUG - Anaconda configuration
run: conda config --show
- name: DEBUG - Environment variables
run: printenv | sort

- name: DEBUG - Program paths
run: |
command -v conda
command -v mamba
- name: INSTALL - Update Anaconda environment
run: mamba env update --name herbie-test --file environment-test.yml
- name: INSTALL - Update Mamba environment
run: mamba env update --name herbie-test --file ci/environment.yml
if: steps.cache-env.outputs.cache-hit != 'true'

- name: INSTALL - Project
Expand Down
Loading

0 comments on commit a96cbf5

Please sign in to comment.