-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove conda default channel #326
Conversation
WalkthroughThe changes involve modifications to several GitHub Actions workflow files to streamline the setup of Conda environments. Key alterations include the introduction of a Changes
Sequence Diagram(s)sequenceDiagram
participant CI as CI/CD Pipeline
participant Conda as Conda Setup
participant Env as Environment
CI->>Conda: Setup Conda Environment
Conda->>Env: Create .condarc file
Env-->>Conda: Channel Configured
Conda->>Env: Install Dependencies
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (7)
- .github/workflows/coverage.yml (1 hunks)
- .github/workflows/deploy.yml (1 hunks)
- .github/workflows/mini.yml (1 hunks)
- .github/workflows/notebooks.yml (1 hunks)
- .github/workflows/pypicheck.yml (1 hunks)
- .github/workflows/unittest.yml (1 hunks)
- .github/workflows/unittests_old.yml (1 hunks)
Additional comments not posted (19)
.github/workflows/pypicheck.yml (3)
17-18
: LGTM!The addition of the Conda config step ensures that the Conda environment uses the specified channel, improving clarity and maintainability.
The code changes are approved.
23-24
: LGTM!The update to the Mambaforge setup parameters streamlines the setup process by consolidating channel information into the
.condarc
file, improving maintainability and clarity.The code changes are approved.
24-24
: LGTM!The addition of the
condarc-file
parameter ensures that the Conda environment uses the configuration specified in the.condarc
file, improving clarity and maintainability.The code changes are approved.
.github/workflows/unittests_old.yml (3)
16-17
: LGTM!The addition of the Conda config step ensures that the Conda environment uses the specified channel, improving clarity and maintainability.
The code changes are approved.
22-23
: LGTM!The update to the Mambaforge setup parameters streamlines the setup process by consolidating channel information into the
.condarc
file, improving maintainability and clarity.The code changes are approved.
23-23
: LGTM!The addition of the
condarc-file
parameter ensures that the Conda environment uses the configuration specified in the.condarc
file, improving clarity and maintainability.The code changes are approved.
.github/workflows/notebooks.yml (3)
19-19
: LGTM!The addition of the Conda config step ensures that the Conda environment uses the specified channel, improving clarity and maintainability.
The code changes are approved.
24-25
: LGTM!The update to the Mambaforge setup parameters streamlines the setup process by consolidating channel information into the
.condarc
file, improving maintainability and clarity.The code changes are approved.
25-25
: LGTM!The addition of the
condarc-file
parameter ensures that the Conda environment uses the configuration specified in the.condarc
file, improving clarity and maintainability.The code changes are approved.
.github/workflows/mini.yml (3)
23-23
: LGTM!Creating a
.condarc
file with theconda-forge
channel simplifies the channel configuration.The code changes are approved.
28-28
: LGTM!Replacing
miniforge-variant
withminiforge-version: latest
ensures the use of the latest Mambaforge version.The code changes are approved.
29-29
: LGTM!Adding the
condarc-file
parameter to point to the.condarc
file centralizes the channel configuration.The code changes are approved.
.github/workflows/deploy.yml (3)
22-23
: LGTM!Creating a
.condarc
file with theconda-forge
channel simplifies the channel configuration.The code changes are approved.
27-27
: LGTM!Replacing
miniforge-variant
withminiforge-version: latest
ensures the use of the latest Mambaforge version.The code changes are approved.
28-28
: LGTM!Adding the
condarc-file
parameter to point to the.condarc
file centralizes the channel configuration.The code changes are approved.
.github/workflows/coverage.yml (3)
24-24
: LGTM!Creating a
.condarc
file with theconda-forge
channel simplifies the channel configuration.The code changes are approved.
29-29
: LGTM!Replacing
miniforge-variant
withminiforge-version: latest
ensures the use of the latest Mambaforge version.The code changes are approved.
30-30
: LGTM!Adding the
condarc-file
parameter to point to the.condarc
file centralizes the channel configuration.The code changes are approved.
.github/workflows/unittest.yml (1)
44-45
: LGTM!The changes streamline the configuration by centralizing channel management within the
.condarc
file and updating the setup parameters for Mambaforge.
- name: Conda config | ||
shell: bash -l {0} | ||
run: echo -e "channels:\n - conda-forge\n" > .condarc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve readability and maintainability of the .condarc
file creation.
Instead of using echo -e
, consider using a heredoc for better readability and maintainability.
- run: echo -e "channels:\n - conda-forge\n" > .condarc
+ run: |
+ cat <<EOF > .condarc
+ channels:
+ - conda-forge
+ EOF
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
- name: Conda config | |
shell: bash -l {0} | |
run: echo -e "channels:\n - conda-forge\n" > .condarc | |
- name: Conda config | |
shell: bash -l {0} | |
run: | | |
cat <<EOF > .condarc | |
channels: | |
- conda-forge | |
EOF |
Summary by CodeRabbit
.condarc
file for Conda channel configuration across various workflows.