Skip to content

Commit

Permalink
Test docs and integrations with new downgrade CI (#177)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sethaxen authored Mar 4, 2024
1 parent 13e4976 commit 9c90783
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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/[email protected]
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

5 changes: 3 additions & 2 deletions .github/workflows/IntegrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c90783

Please sign in to comment.