From 8f32f96e98ba19d7a19871f0da61e17da9ceec6f Mon Sep 17 00:00:00 2001 From: rs028 Date: Wed, 14 Aug 2024 18:17:11 +0100 Subject: [PATCH] Update github actions --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/tex.yml | 22 +++++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f1af138e..35e32e3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,9 +47,9 @@ jobs: matrix: os: [ubuntu-20.04, ubuntu-22.04, macos-12, macos-13] fortran: [10, 11] - exclude: # gfortran-11, gfortran-12 not available for ubuntu-20.04 - - os: ubuntu-20.04 - fortran: 11 + # exclude: # gfortran-11, gfortran-12 not available for ubuntu-20.04 + # - os: ubuntu-20.04 + # fortran: 11 fail-fast: false # ------------------------------------------------------------- @@ -79,7 +79,7 @@ jobs: # gfortran on macos - name: Install gfortran-10 (macos-12) - if: matrix.os == 'macos-12' && matrix.fortran == 10 + if: matrix.os == 'macos-12' && (matrix.fortran == 10 || matrix.fortran == 11) run: brew install gcc@${{ matrix.fortran }} - name: Install gfortran-10 and gfortran-11 (macos-13) @@ -155,6 +155,6 @@ jobs: - name: Upload coverage reports to Codecov if: matrix.os == 'ubuntu-22.04' && matrix.fortran == 11 - uses: codecov/codecov-action@v4 # https://github.com/marketplace/actions/codecov + uses: codecov/codecov-action@v3 # https://github.com/marketplace/actions/codecov with: gcov: true diff --git a/.github/workflows/tex.yml b/.github/workflows/tex.yml index 88eff090..c3e631af 100644 --- a/.github/workflows/tex.yml +++ b/.github/workflows/tex.yml @@ -21,9 +21,9 @@ on: # master branch) pull_request: branches: [ master ] - # paths: - # - 'doc/latex/**/*.tex' - # - 'doc/figures/**/*.svg' + paths: + - 'doc/latex/**/*.tex' + - 'doc/figures/**/*.svg' # Triggers when a push is made to the master branch (either by # merging a pull request, or by direct commit) @@ -50,9 +50,9 @@ jobs: fetch-depth: 2 ref: ${{ github.ref }} - - name: Check Token Permissions - run: | - echo "Token Permissions: $(curl -sSL -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/AtChem/AtChem2 | jq .permissions)" + # - name: Check Token Permissions + # run: | + # echo "Token Permissions: $(curl -sSL -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/AtChem/AtChem2 | jq .permissions)" # ------------------------------------------------------------- # 2. Setup TeXLive and Inkscape (v1.x), then run the script to @@ -80,8 +80,8 @@ jobs: git config --local user.name "github-actions[bot]" git config --local user.email "github-actions[bot]@users.noreply.github.com" - - name: Commit and Push - run: | - git add doc/AtChem2-Manual.pdf - git commit -m "Update AtChem2-Manual.pdf" - # git push origin HEAD:${{ github.ref }} + # - name: Commit and Push + # run: | + # git add doc/AtChem2-Manual.pdf + # git commit -m "Update AtChem2-Manual.pdf" + # # git push origin HEAD:${{ github.ref }}