Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove pygrib as a dependency; manually parse coordinate reference system from eccodes keys #403

Merged
merged 18 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading