Skip to content

Commit

Permalink
ENH: Add defaults to conda channels in build-test-publish GHA
Browse files Browse the repository at this point in the history
Add `defaults` to the list of `conda` channels when setting up
`miniconda` in the build, test, publish GHA workflow file.

Fixes:
```
/usr/share/miniconda/lib/python3.12/site-packages/conda/base/context.py:198:
 FutureWarning: Adding 'defaults' to channel list implicitly is deprecated and will be removed in 25.3.

To remove this warning, please choose a default channel explicitly with
 conda's regular configuration system, e.g. by adding 'defaults' to the list of channels:

  conda config --add channels defaults

For more information see https://docs.conda.io/projects/conda/en/stable/user-guide/configuration/use-condarc.html
```

raised for example in:
https://github.com/nipreps/sdcflows/actions/runs/12413644206
  • Loading branch information
jhlegarreta committed Dec 20, 2024
1 parent a50506a commit ecb1b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
auto-update-conda: true
auto-activate-base: true
python-version: ${{ matrix.python-version }}
channels: https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/,conda-forge
channels: https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/,conda-forge,defaults
- uses: actions/cache@v4
id: conda
env:
Expand Down

0 comments on commit ecb1b33

Please sign in to comment.