Skip to content

Commit

Permalink
Update build.yml github actions
Browse files Browse the repository at this point in the history
This PR removes mamba with conda-incubator/setup-miniconda@v3. This was causing broken CI workflows
  • Loading branch information
Evan Goetz committed Dec 12, 2024
1 parent fdc0a4b commit 253926c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,27 @@ jobs:
- name: Configure conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
miniforge-variant: Mambaforge
auto-update-conda: true
channels: conda-forge
python-version: ${{ matrix.python-version }}
use-mamba: true
# this is needed for caching to work properly:
use-only-tar-bz2: true

- name: Conda info
run: conda info --all

- name: Install dependencies
run: |
# parse requirements to install as much as possible with conda
mamba create --name pip2conda pip2conda
mamba run -n pip2conda pip2conda \
conda create --name pip2conda pip2conda
conda run -n pip2conda pip2conda \
--all \
--output environment.txt \
--python-version ${{ matrix.python-version }}
echo "-----------------"
cat environment.txt
echo "-----------------"
mamba install --quiet --yes --name test --file environment.txt
conda install --quiet --yes --name test --file environment.txt
- name: Install GWSumm
run: python -m pip install . --no-build-isolation -vv
Expand Down

0 comments on commit 253926c

Please sign in to comment.