Skip to content

Commit

Permalink
Added custom condarc that disables default channel
Browse files Browse the repository at this point in the history
  • Loading branch information
ssun30 committed Oct 9, 2024
1 parent 6339648 commit 5df2048
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ jobs:
- name: Checkout RMG-Py
uses: actions/checkout@v4

# Step to create a custom condarc.yml before setting up conda
- name: Create custom condarc.yml
run: |
echo "channels:" > /home/runner/condarc.yml
echo " - conda-forge" >> /home/runner/condarc.yml
echo " - rmg" >> /home/runner/condarc.yml
echo " - cantera" >> /home/runner/condarc.yml
echo "show_channel_urls: true" >> /home/runner/condarc.yml
# configures the mamba environment manager and builds the environment
- name: Setup Miniforge Python 3.7
uses: conda-incubator/setup-miniconda@v3
Expand All @@ -123,6 +132,7 @@ jobs:
miniforge-variant: Miniforge3
miniforge-version: latest
python-version: 3.7
condarc-file: /home/runner/condarc.yml
activate-environment: rmg_env
use-mamba: true

Expand Down

0 comments on commit 5df2048

Please sign in to comment.