From 3e927c74ce47f775aa21f4c64674a011e95f1275 Mon Sep 17 00:00:00 2001 From: Guillaume Fraux Date: Mon, 18 Nov 2024 14:29:48 +0100 Subject: [PATCH] Update CI configuration --- .github/workflows/docs.yml | 10 +++++----- .github/workflows/tests.yml | 36 +++++++++++------------------------- 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b7951c0..fc916a9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,13 +9,13 @@ on: jobs: build-and-publish: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup Julia - uses: julia-actions/setup-julia@v1 + uses: julia-actions/setup-julia@v2 with: - version: 1.6 + version: lts - name: build documentation run: | julia -e 'using Pkg; Pkg.add("Documenter")' @@ -35,7 +35,7 @@ jobs: fi - name: deploy to gh-pages if: github.event_name == 'push' - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./gh-pages/ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 76c1cfc..274701d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,43 +15,29 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04] - julia-version: ["1.6", "1.8", "nightly"] - julia-arch: [x64] + os: [ubuntu-24.04] + julia-version: [lts, "1.11", "nightly"] include: - - name: Linux 32-bit - os: ubuntu-20.04 - julia-version: "1.6" - julia-arch: x86 - # This fails with "A dynamic link library (DLL) initialization routine failed." - # - name: Windows 32-bit - # os: windows-2019 - # julia-version: "1.6" - # julia-arch: x86 - - name: Windows 64-bit - os: windows-2019 - julia-version: "1.6" - julia-arch: x64 - - os: macos-11 - julia-version: "1.6" - julia-arch: x64 + - os: windows-2022 + julia-version: lts + - os: macos-14 + julia-version: lts steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: setup Julia - uses: julia-actions/setup-julia@v1 + uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.julia-version }} - arch: ${{ matrix.julia-arch }} - name: build package run: julia --check-bounds=yes --inline=no --project -e 'using Pkg; Pkg.build("Chemfiles")' - name: run tests run: julia --check-bounds=yes --inline=no --project -e 'using Pkg; Pkg.test("Chemfiles"; coverage=true)' - name: run extra checks - if: matrix.os == 'ubuntu-20.04' + if: matrix.os == 'ubuntu-24.04' run: ./scripts/check_used_functions.py - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 - if: matrix.os == 'ubuntu-20.04' + - uses: codecov/codecov-action@v5 + if: matrix.os == 'ubuntu-24.04' with: fail_ci_if_error: true verbose: true