From 9c90783df2a46e5e0fb3a4d808a4f29c2e4f0262 Mon Sep 17 00:00:00 2001 From: Seth Axen Date: Mon, 4 Mar 2024 16:45:50 +0100 Subject: [PATCH] Test docs and integrations with new downgrade CI (#177) * Use new julia-actions version of action * Also downgrade docs deps * Downgrade weak dependencies also * Skip Pathfinder downgrade for docs build * Fix docs downgrade and test * Fix uses of action * Hide documenter key when building docs with old Julia versions * Test docs for v1.7 --- .github/workflows/CI.yml | 23 ++++++++++++++++++----- .github/workflows/IntegrationTests.yml | 5 +++-- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f1b05a22..aaad3341 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -44,7 +44,7 @@ jobs: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - uses: julia-actions/cache@v1 - - uses: cjdoris/julia-downgrade-compat-action@v1 + - uses: julia-actions/julia-downgrade-compat@v1 with: skip: LinearAlgebra,Random,Statistics if: ${{ matrix.downgrade }} @@ -59,17 +59,30 @@ jobs: files: lcov.info token: ${{ secrets.CODECOV_TOKEN }} docs: - name: Documentation + name: ${{ matrix.downgrade && 'Downgrade / ' || '' }}Documentation - Julia ${{ matrix.version }} runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - version: '1' + downgrade: false + - version: '1.7' + downgrade: true steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: - version: '1' + version: ${{ matrix.version }} + - uses: julia-actions/julia-downgrade-compat@v1.1 + with: + skip: LinearAlgebra,Pathfinder,Random,Statistics + projects: ., docs + if: matrix.downgrade + name: Downgrade dependencies to oldest supported versions - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-docdeploy@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} + DOCUMENTER_KEY: ${{ matrix.version == '1' && secrets.DOCUMENTER_KEY || '' }} GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988 - diff --git a/.github/workflows/IntegrationTests.yml b/.github/workflows/IntegrationTests.yml index 5a0c7868..a18a2a6d 100644 --- a/.github/workflows/IntegrationTests.yml +++ b/.github/workflows/IntegrationTests.yml @@ -25,9 +25,10 @@ jobs: with: version: ${{ matrix.version }} arch: x64 - - uses: cjdoris/julia-downgrade-compat-action@v1 + - uses: julia-actions/julia-downgrade-compat@v1.1 with: - skip: LinearAlgebra,Random,Statistics + skip: LinearAlgebra,Pathfinder,Random,Statistics + projects: ., test/integration/${{ matrix.package }} if: ${{ matrix.downgrade }} name: Downgrade dependencies to oldest supported versions - uses: julia-actions/julia-buildpkg@v1