Skip to content

Commit 1bc4440

Browse files
authored
Conda set conda-remove-defaults: true (#84)
* Conda set conda-remove-defaults: true * use conda config
1 parent c530d51 commit 1bc4440

File tree

3 files changed

+43
-29
lines changed

3 files changed

+43
-29
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +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
1820
- name: Install Jupyterbook
1921
shell: bash -l {0}
2022
run: |

.github/workflows/pipeline.yml

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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
3335
- name: Pip check
3436
shell: bash -l {0}
3537
run: |
@@ -40,12 +42,14 @@ jobs:
4042
runs-on: ubuntu-22.04
4143
steps:
4244
- uses: actions/checkout@v4
45+
- name: Conda config
46+
run: echo -e "channels:\n - conda-forge\n" > .condarc
4347
- uses: conda-incubator/setup-miniconda@v3
4448
with:
45-
auto-update-conda: true
4649
python-version: "3.12"
50+
miniforge-version: latest
51+
condarc-file: .condarc
4752
environment-file: binder/environment.yml
48-
auto-activate-base: false
4953
- name: Installation and setup
5054
shell: bash -l {0}
5155
run: |
@@ -74,13 +78,15 @@ jobs:
7478
- uses: actions/checkout@v4
7579
- name: Setup environment
7680
shell: bash -l {0}
77-
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
7884
- uses: conda-incubator/setup-miniconda@v3
7985
with:
80-
auto-update-conda: true
8186
python-version: "3.12"
87+
miniforge-version: latest
88+
condarc-file: .condarc
8289
environment-file: binder/environment.yml
83-
auto-activate-base: false
8490
- name: Installation and setup
8591
shell: bash -l {0}
8692
run: |
@@ -103,12 +109,14 @@ jobs:
103109
runs-on: ubuntu-latest
104110
steps:
105111
- uses: actions/checkout@v4
112+
- name: Conda config
113+
run: echo -e "channels:\n - conda-forge\n" > .condarc
106114
- uses: conda-incubator/setup-miniconda@v3
107115
with:
108-
auto-update-conda: true
109116
python-version: "3.12"
117+
miniforge-version: latest
118+
condarc-file: .condarc
110119
environment-file: binder/environment.yml
111-
auto-activate-base: false
112120
- name: Installation and setup
113121
shell: bash -l {0}
114122
run: |
@@ -127,19 +135,21 @@ jobs:
127135
documentation:
128136
runs-on: ubuntu-latest
129137
steps:
130-
- uses: actions/checkout@v4
131-
- uses: conda-incubator/setup-miniconda@v3
132-
with:
133-
auto-update-conda: true
134-
python-version: "3.12"
135-
environment-file: documentation/environment.yml
136-
auto-activate-base: false
137-
- name: Install Jupyterbook
138-
shell: bash -l {0}
139-
run: |
140-
cp documentation/_config.yml .
141-
cp documentation/_toc.yml .
142-
cp documentation/*.md .
143-
jupyter-book build . --path-output public
144-
mv public/_build/html public_html
145-
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +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
2527
- name: Build
2628
shell: bash -l {0}
2729
run: |

0 commit comments

Comments
 (0)