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

Update setup-miniconda actions configuration #420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
26 changes: 11 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,22 @@ jobs:
with:
fetch-depth: 0

# EG 13 Dec 2024: commenting out broken cache
# - name: Cache conda packages
# uses: actions/cache@v4
# env:
# # increment to reset cache
# CACHE_NUMBER: 0
# with:
# path: ~/conda_pkgs_dir
# key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}
# restore-keys: ${{ runner.os }}-conda-${{ matrix.python-version }}-
- name: Cache conda packages
uses: actions/cache@v4
env:
# increment to reset cache
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}
restore-keys: ${{ runner.os }}-conda-${{ matrix.python-version }}-

- name: Configure conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge
activate-environment: test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, can we revert the change of this line? By default test is activated.

Suggested change
activate-environment: test
auto-update-conda: true

miniforge-version: latest
python-version: ${{ matrix.python-version }}
# this is needed for caching to work properly:
# EG 13 Dec 2024: commenting out broken cache
# use-only-tar-bz2: true

- name: Conda info
run: conda info --all
Expand Down
Loading