diff --git a/.github/workflows/branch-docs.yml b/.github/workflows/branch-docs.yml index 433000617..dde4f03b7 100644 --- a/.github/workflows/branch-docs.yml +++ b/.github/workflows/branch-docs.yml @@ -11,6 +11,8 @@ jobs: # develop branch docs are built at the end of the core test workflow, regardless of repository owner or commit message flags name: ubuntu-latest py3.10 runs-on: ubuntu-latest + permissions: + contents: write defaults: run: shell: bash -l {0} @@ -60,7 +62,7 @@ jobs: make html - name: Push to GitHub Pages - uses: peaceiris/actions-gh-pages@v3.8.0 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} # Token is created automatically by Github Actions, no other config needed diff --git a/.github/workflows/core_tests.yml b/.github/workflows/core_tests.yml index 8339dfbbe..eb4b570cc 100644 --- a/.github/workflows/core_tests.yml +++ b/.github/workflows/core_tests.yml @@ -10,7 +10,7 @@ on: - '*' env: - CACHE_NUMBER: 2 # increase to reset cache manually + CACHE_NUMBER: 0 # increase to reset cache manually jobs: foundation: @@ -29,9 +29,11 @@ jobs: - name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: - miniforge-version: latest - activate-environment: asim-test - python-version: ${{ matrix.python-version }} + auto-update-conda: true + miniforge-version: latest + conda-solver: classic + activate-environment: asim-test + python-version: ${{ matrix.python-version }} - name: Set cache date for year and month run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV @@ -112,9 +114,11 @@ jobs: - name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: - miniforge-version: latest - activate-environment: asim-test - python-version: ${{ matrix.python-version }} + auto-update-conda: true + miniforge-version: latest + conda-solver: classic + activate-environment: asim-test + python-version: ${{ matrix.python-version }} - name: Set cache date for year and month run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV @@ -193,7 +197,9 @@ jobs: - name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: + auto-update-conda: true miniforge-version: latest + conda-solver: classic activate-environment: asim-test python-version: ${{ env.python-version }} @@ -279,7 +285,9 @@ jobs: - name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: + auto-update-conda: true miniforge-version: latest + conda-solver: classic activate-environment: asim-test python-version: ${{ env.python-version }} @@ -340,7 +348,9 @@ jobs: - name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: + auto-update-conda: true miniforge-version: latest + conda-solver: classic activate-environment: asim-test python-version: ${{ env.python-version }} @@ -390,7 +400,9 @@ jobs: - name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: + auto-update-conda: true miniforge-version: latest + conda-solver: classic activate-environment: asim-test python-version: ${{ env.python-version }} @@ -432,6 +444,8 @@ jobs: if: github.ref_name == 'main' name: develop-docbuild runs-on: ubuntu-latest + permissions: + contents: write defaults: run: shell: bash -l {0} @@ -472,7 +486,7 @@ jobs: make clean make html - name: Push to GitHub Pages - uses: peaceiris/actions-gh-pages@v3.8.0 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} # Token is created automatically by Github Actions, no other config needed