Skip to content

Commit

Permalink
Install conda-recipe-manager in CI if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
maresb committed Sep 28, 2024
1 parent b0d6c78 commit a078d44
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,20 @@ jobs:
micromamba-binary-path: /home/runner/micromamba-bin-versioned/micromamba
####
environment-file: environment.yaml
# Added an extra python to the create-args in order to bust the cache:
create-args: >-
"python =${{ matrix.py_ver }}"
python=${{ matrix.py_ver }}
python
cache-environment: true
- name: Install conda-recipe-manager if possible
# Possible when the Python version is >=3.11
run: |
if [ $(python -c "import sys; print(sys.version_info[:2] >= (3,11))") = "True" ]; then
echo "Installing conda-recipe-manager"
micromamba install -y -c conda-forge conda-recipe-manager
else
echo "Skipping conda-recipe-manager installation"
fi
- name: Conda info
run: |
conda info --all
Expand Down

0 comments on commit a078d44

Please sign in to comment.