Skip to content

Commit 983129e

Browse files
committed
use conda config
1 parent 02095aa commit 983129e

File tree

3 files changed

+43
-36
lines changed

3 files changed

+43
-36
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
- name: Conda config
13+
run: echo -e "channels:\n - conda-forge\n" > .condarc
1214
- uses: conda-incubator/setup-miniconda@v3
1315
with:
14-
auto-update-conda: true
1516
python-version: "3.12"
17+
miniforge-version: latest
18+
condarc-file: .condarc
1619
environment-file: documentation/environment.yml
17-
auto-activate-base: false
18-
conda-remove-defaults: true
1920
- name: Install Jupyterbook
2021
shell: bash -l {0}
2122
run: |

.github/workflows/pipeline.yml

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v4
26+
- name: Conda config
27+
run: echo -e "channels:\n - conda-forge\n" > .condarc
2628
- name: Setup Mambaforge
2729
uses: conda-incubator/setup-miniconda@v3
2830
with:
29-
auto-update-conda: true
3031
python-version: "3.12"
32+
miniforge-version: latest
33+
condarc-file: .condarc
3134
environment-file: binder/environment.yml
32-
auto-activate-base: false
33-
conda-remove-defaults: true
3435
- name: Pip check
3536
shell: bash -l {0}
3637
run: |
@@ -41,13 +42,14 @@ jobs:
4142
runs-on: ubuntu-22.04
4243
steps:
4344
- uses: actions/checkout@v4
45+
- name: Conda config
46+
run: echo -e "channels:\n - conda-forge\n" > .condarc
4447
- uses: conda-incubator/setup-miniconda@v3
4548
with:
46-
auto-update-conda: true
4749
python-version: "3.12"
50+
miniforge-version: latest
51+
condarc-file: .condarc
4852
environment-file: binder/environment.yml
49-
auto-activate-base: false
50-
conda-remove-defaults: true
5153
- name: Installation and setup
5254
shell: bash -l {0}
5355
run: |
@@ -76,14 +78,15 @@ jobs:
7678
- uses: actions/checkout@v4
7779
- name: Setup environment
7880
shell: bash -l {0}
79-
run: tail --lines=+4 example_workflows/quantum_espresso/environment.yml >> binder/environment.yml
81+
run: |
82+
echo -e "channels:\n - conda-forge\n" > .condarc
83+
tail --lines=+4 example_workflows/quantum_espresso/environment.yml >> binder/environment.yml
8084
- uses: conda-incubator/setup-miniconda@v3
8185
with:
82-
auto-update-conda: true
8386
python-version: "3.12"
87+
miniforge-version: latest
88+
condarc-file: .condarc
8489
environment-file: binder/environment.yml
85-
auto-activate-base: false
86-
conda-remove-defaults: true
8790
- name: Installation and setup
8891
shell: bash -l {0}
8992
run: |
@@ -106,13 +109,14 @@ jobs:
106109
runs-on: ubuntu-latest
107110
steps:
108111
- uses: actions/checkout@v4
112+
- name: Conda config
113+
run: echo -e "channels:\n - conda-forge\n" > .condarc
109114
- uses: conda-incubator/setup-miniconda@v3
110115
with:
111-
auto-update-conda: true
112116
python-version: "3.12"
117+
miniforge-version: latest
118+
condarc-file: .condarc
113119
environment-file: binder/environment.yml
114-
auto-activate-base: false
115-
conda-remove-defaults: true
116120
- name: Installation and setup
117121
shell: bash -l {0}
118122
run: |
@@ -131,20 +135,21 @@ jobs:
131135
documentation:
132136
runs-on: ubuntu-latest
133137
steps:
134-
- uses: actions/checkout@v4
135-
- uses: conda-incubator/setup-miniconda@v3
136-
with:
137-
auto-update-conda: true
138-
python-version: "3.12"
139-
environment-file: documentation/environment.yml
140-
auto-activate-base: false
141-
conda-remove-defaults: true
142-
- name: Install Jupyterbook
143-
shell: bash -l {0}
144-
run: |
145-
cp documentation/_config.yml .
146-
cp documentation/_toc.yml .
147-
cp documentation/*.md .
148-
jupyter-book build . --path-output public
149-
mv public/_build/html public_html
150-
touch public_html/.nojekyll
138+
- uses: actions/checkout@v4
139+
- name: Conda config
140+
run: echo -e "channels:\n - conda-forge\n" > .condarc
141+
- uses: conda-incubator/setup-miniconda@v3
142+
with:
143+
python-version: "3.12"
144+
miniforge-version: latest
145+
condarc-file: .condarc
146+
environment-file: documentation/environment.yml
147+
- name: Install Jupyterbook
148+
shell: bash -l {0}
149+
run: |
150+
cp documentation/_config.yml .
151+
cp documentation/_toc.yml .
152+
cp documentation/*.md .
153+
jupyter-book build . --path-output public
154+
mv public/_build/html public_html
155+
touch public_html/.nojekyll

.github/workflows/pypi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@ jobs:
1616
id-token: write
1717
steps:
1818
- uses: actions/checkout@v4
19+
- name: Conda config
20+
run: echo -e "channels:\n - conda-forge\n" > .condarc
1921
- uses: conda-incubator/setup-miniconda@v3
2022
with:
21-
auto-update-conda: true
2223
python-version: "3.12"
24+
miniforge-version: latest
25+
condarc-file: .condarc
2326
environment-file: binder/environment.yml
24-
auto-activate-base: false
25-
conda-remove-defaults: true
2627
- name: Build
2728
shell: bash -l {0}
2829
run: |

0 commit comments

Comments
 (0)