Skip to content

Commit 39c5e12

Browse files
authored
GitHub Actions updates (#926)
* use libmamba solver * add permissions [makedocs] * add write permission for dev docs [makedocs] * conda-solver: classic
1 parent bf64b7b commit 39c5e12

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

.github/workflows/branch-docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
# develop branch docs are built at the end of the core test workflow, regardless of repository owner or commit message flags
1212
name: ubuntu-latest py3.10
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416
defaults:
1517
run:
1618
shell: bash -l {0}
@@ -60,7 +62,7 @@ jobs:
6062
make html
6163
6264
- name: Push to GitHub Pages
63-
uses: peaceiris/actions-gh-pages@v3.8.0
65+
uses: peaceiris/actions-gh-pages@v4
6466
with:
6567
github_token: ${{ secrets.GITHUB_TOKEN }}
6668
# Token is created automatically by Github Actions, no other config needed

.github/workflows/core_tests.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- '*'
1111

1212
env:
13-
CACHE_NUMBER: 2 # increase to reset cache manually
13+
CACHE_NUMBER: 0 # increase to reset cache manually
1414

1515
jobs:
1616
foundation:
@@ -29,9 +29,11 @@ jobs:
2929
- name: Setup Miniforge
3030
uses: conda-incubator/setup-miniconda@v3
3131
with:
32-
miniforge-version: latest
33-
activate-environment: asim-test
34-
python-version: ${{ matrix.python-version }}
32+
auto-update-conda: true
33+
miniforge-version: latest
34+
conda-solver: classic
35+
activate-environment: asim-test
36+
python-version: ${{ matrix.python-version }}
3537

3638
- name: Set cache date for year and month
3739
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
@@ -112,9 +114,11 @@ jobs:
112114
- name: Setup Miniforge
113115
uses: conda-incubator/setup-miniconda@v3
114116
with:
115-
miniforge-version: latest
116-
activate-environment: asim-test
117-
python-version: ${{ matrix.python-version }}
117+
auto-update-conda: true
118+
miniforge-version: latest
119+
conda-solver: classic
120+
activate-environment: asim-test
121+
python-version: ${{ matrix.python-version }}
118122

119123
- name: Set cache date for year and month
120124
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV
@@ -193,7 +197,9 @@ jobs:
193197
- name: Setup Miniforge
194198
uses: conda-incubator/setup-miniconda@v3
195199
with:
200+
auto-update-conda: true
196201
miniforge-version: latest
202+
conda-solver: classic
197203
activate-environment: asim-test
198204
python-version: ${{ env.python-version }}
199205

@@ -279,7 +285,9 @@ jobs:
279285
- name: Setup Miniforge
280286
uses: conda-incubator/setup-miniconda@v3
281287
with:
288+
auto-update-conda: true
282289
miniforge-version: latest
290+
conda-solver: classic
283291
activate-environment: asim-test
284292
python-version: ${{ env.python-version }}
285293

@@ -340,7 +348,9 @@ jobs:
340348
- name: Setup Miniforge
341349
uses: conda-incubator/setup-miniconda@v3
342350
with:
351+
auto-update-conda: true
343352
miniforge-version: latest
353+
conda-solver: classic
344354
activate-environment: asim-test
345355
python-version: ${{ env.python-version }}
346356

@@ -390,7 +400,9 @@ jobs:
390400
- name: Setup Miniforge
391401
uses: conda-incubator/setup-miniconda@v3
392402
with:
403+
auto-update-conda: true
393404
miniforge-version: latest
405+
conda-solver: classic
394406
activate-environment: asim-test
395407
python-version: ${{ env.python-version }}
396408

@@ -432,6 +444,8 @@ jobs:
432444
if: github.ref_name == 'main'
433445
name: develop-docbuild
434446
runs-on: ubuntu-latest
447+
permissions:
448+
contents: write
435449
defaults:
436450
run:
437451
shell: bash -l {0}
@@ -472,7 +486,7 @@ jobs:
472486
make clean
473487
make html
474488
- name: Push to GitHub Pages
475-
uses: peaceiris/actions-gh-pages@v3.8.0
489+
uses: peaceiris/actions-gh-pages@v4
476490
with:
477491
github_token: ${{ secrets.GITHUB_TOKEN }}
478492
# Token is created automatically by Github Actions, no other config needed

0 commit comments

Comments
 (0)