Skip to content
New issue

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

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

Already on GitHub? # to your account

ENH: Add defaults to conda channels in build-test-publish GHA #474

Merged

Conversation

jhlegarreta
Copy link
Contributor

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

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
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.86%. Comparing base (a50506a) to head (ecb1b33).
Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #474   +/-   ##
=======================================
  Coverage   83.86%   83.86%           
=======================================
  Files          30       30           
  Lines        2807     2807           
  Branches      360      360           
=======================================
  Hits         2354     2354           
  Misses        383      383           
  Partials       70       70           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jhlegarreta
Copy link
Contributor Author

@effigies effigies merged commit 50c053d into nipreps:master Jan 22, 2025
18 checks passed
@jhlegarreta jhlegarreta deleted the FixBuildTestPublishCondaChannelWarning branch January 22, 2025 14:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants