Skip to content

Commit

Permalink
Remove conda default channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Aug 27, 2024
1 parent bfd0ef9 commit 4a65a1b
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 35 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ jobs:
run: |
cp .ci_support/environment.yml environment.yml
echo "- flux-core =0.59.0" >> environment.yml
echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.12'
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
activate-environment: my-env
miniforge-version: latest
condarc-file: .condarc
environment-file: environment.yml
use-mamba: true
- name: Install
shell: bash -l {0}
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
mamba-version: "*"
channels: conda-forge
miniforge-variant: Mambaforge
channel-priority: strict
auto-update-conda: true
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment.yml
- name: Convert dependencies
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/mini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ jobs:
sed -i '/defusedxml/d' environment.yml
sed -i '/paramiko/d' environment.yml
sed -i '/tqdm/d' environment.yml
echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.12'
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
activate-environment: my-env
miniforge-version: latest
condarc-file: .condarc
environment-file: environment.yml
use-mamba: true
- name: Test
shell: bash -l {0}
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ jobs:
run: |
cp binder/environment.yml environment.yml
tail --lines=+4 .ci_support/environment-notebooks.yml >> environment.yml
echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.12"
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
activate-environment: my-env
miniforge-version: latest
condarc-file: .condarc
environment-file: environment.yml
use-mamba: true
- name: Install
shell: bash -l {0}
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/pypicheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.12'
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
activate-environment: my-env
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment.yml
use-mamba: true
- name: Pip check
shell: bash -l {0}
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Conda config
shell: bash -l {0}
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
activate-environment: my-env
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment.yml
use-mamba: true
- name: Test
shell: bash -l {0}
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/unittests_old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Conda config
run: echo -e "channels:\n - conda-forge\n" > .condarc
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.9'
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: strict
activate-environment: my-env
miniforge-version: latest
condarc-file: .condarc
environment-file: .ci_support/environment-old.yml
use-mamba: true
- name: Test
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 4a65a1b

Please sign in to comment.