Skip to content

Commit 37c5b51

Browse files
committed
update CI
1 parent 2b0c17e commit 37c5b51

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ on:
44
branches:
55
- main
66
- ci
7-
tags: '*'
7+
tags: ['*']
88
pull_request:
9+
workflow_dispatch:
910
jobs:
1011
test:
1112
name: Julia ${{ matrix.group }} - ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1213
runs-on: ${{ matrix.os }}
14+
timeout-minutes: 60
15+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
16+
actions: write
17+
contents: read
1318
strategy:
1419
fail-fast: false
1520
matrix:
@@ -30,15 +35,6 @@ jobs:
3035
version: ${{ matrix.version }}
3136
arch: ${{ matrix.arch }}
3237
- uses: julia-actions/cache@v2
33-
env:
34-
cache-name: cache-artifacts
35-
with:
36-
path: ~/.julia/artifacts
37-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38-
restore-keys: |
39-
${{ runner.os }}-test-${{ env.cache-name }}-
40-
${{ runner.os }}-test-
41-
${{ runner.os }}-
4238
- uses: julia-actions/julia-buildpkg@v1
4339
- uses: julia-actions/julia-runtest@v1
4440
env:
@@ -48,27 +44,32 @@ jobs:
4844
with:
4945
file: lcov.info
5046
token: ${{ secrets.CODECOV_TOKEN }}
51-
fail_ci_if_error: false
47+
fail_ci_if_error: true
5248
docs:
5349
name: Documentation
5450
runs-on: ubuntu-latest
5551
steps:
5652
- uses: actions/checkout@v4
5753
- uses: julia-actions/setup-julia@v2
58-
with:
59-
version: '1'
6054
- uses: cjdoris/julia-downgrade-compat-action@v1
6155
if: ${{ matrix.version == '1.10' }}
6256
with:
6357
skip: Pkg,TOML,Statistics
58+
- name: Configure doc environment
59+
shell: julia --project=docs --color=yes {0}
60+
run: |
61+
using Pkg
62+
Pkg.develop(PackageSpec(path=pwd()))
63+
Pkg.instantiate()
6464
- uses: julia-actions/julia-buildpkg@v1
6565
- uses: julia-actions/julia-docdeploy@v1
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
69-
- run: |
70-
julia --project=docs -e '
71-
using Documenter: DocMeta, doctest
69+
- name: Run doctests
70+
shell: julia --project=docs --color=yes {0}
71+
run: |
72+
using Documenter: DocMeta, doctest
7273
using Bigleaf
7374
DocMeta.setdocmeta!(Bigleaf, :DocTestSetup, :(using Bigleaf); recursive=true)
7475
doctest(Bigleaf)'

0 commit comments

Comments
 (0)