Skip to content

Commit

Permalink
Merge pull request #28 from Kuonirad/devin/System-level-conda-config
Browse files Browse the repository at this point in the history
ci: configure system-level conda settings before miniconda setup
  • Loading branch information
Kuonirad authored Dec 23, 2024
2 parents b8d9cfd + a7a7c05 commit 314f32a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4

- name: Configure System-level Conda Settings
shell: bash -l {0}
run: |
# Remove any existing conda configuration files that might override settings
sudo rm -f /etc/conda/.condarc /usr/local/etc/conda/.condarc || true
# Set system-wide conda configuration
conda config --system --set solver classic
conda config --system --set channel_priority strict
conda config --system --show solver
- name: Set up Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -30,6 +41,9 @@ jobs:
channel-priority: strict
channels: conda-forge,defaults
conda-solver: classic
# Explicitly set solver in environment variables
environment-variables: |
CONDA_SOLVER=classic
- name: Install System Dependencies
run: |
Expand Down

0 comments on commit 314f32a

Please sign in to comment.