Skip to content

Commit

Permalink
Misc CI fixes (#1090)
Browse files Browse the repository at this point in the history
- Move documentation job to a separate workflow file
 - Upgrade documentation manifest for Julia 1.11
  • Loading branch information
fredrikekre authored Oct 8, 2024
1 parent 9359cfd commit 149cb77
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 82 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Documentation
on:
pull_request:
push:
branches: ['master']
tags: ['*']
jobs:
docs:
name: Julia 1.11 - ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
GKSwstype: '100'
run: julia --project=docs --color=yes docs/make.jl
30 changes: 5 additions & 25 deletions .github/workflows/ci.yml → .github/workflows/Test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: CI

name: Test
on:
pull_request:
push:
branches: master
tags: '*'

branches: ['master']
tags: ['*']
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ github.event_name }}
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 40
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
strategy:
matrix:
julia-version: ['1.9', '1', 'nightly']
julia-version: ['1.10', '1', 'nightly']
os: ['ubuntu-latest']
include:
- os: windows-latest
Expand All @@ -37,21 +35,3 @@ jobs:
file: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
docs:
name: Documentation
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Install dependencies
run: julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
GKSwstype: '100'
run: julia --project=docs --color=yes docs/make.jl
Loading

0 comments on commit 149cb77

Please sign in to comment.