Skip to content

Commit 8fcd233

Browse files
authored
Update CI config (#155)
1 parent 9de71c5 commit 8fcd233

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ on:
55
branches:
66
- master
77
tags: '*'
8+
9+
concurrency:
10+
# group by workflow and ref; the last slightly strange component ensures that for pull
11+
# requests, we limit to 1 concurrent job, but for the default repository branch we don't
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
13+
# Cancel intermediate builds, but only if it is a pull request build.
14+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
16+
# needed to allow julia-actions/cache to delete old caches that it has created
17+
permissions:
18+
actions: write
19+
contents: read
20+
821
jobs:
922
test:
1023
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -24,24 +37,15 @@ jobs:
2437
arch:
2538
- x64
2639
steps:
27-
- uses: actions/checkout@v2
28-
- uses: julia-actions/setup-julia@v1
40+
- uses: actions/checkout@v4
41+
- uses: julia-actions/setup-julia@v2
2942
with:
3043
version: ${{ matrix.version }}
3144
arch: ${{ matrix.arch }}
32-
- uses: actions/cache@v1
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 }}-
45+
- uses: julia-actions/cache@v2
4246
- uses: julia-actions/julia-buildpkg@v1
4347
- uses: julia-actions/julia-runtest@v1
4448
- uses: julia-actions/julia-processcoverage@v1
45-
- uses: codecov/codecov-action@v1
49+
- uses: codecov/codecov-action@v5
4650
with:
4751
file: lcov.info

.github/workflows/Documenter.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
- uses: julia-actions/setup-julia@v2
15+
with:
16+
version: '1' # replace this with whatever version you need
17+
show-versioninfo: true # this causes versioninfo to be printed to the action log
1418
- uses: julia-actions/cache@v2
15-
- uses: julia-actions/julia-buildpkg@latest
16-
- uses: julia-actions/julia-docdeploy@latest
19+
- uses: julia-actions/julia-docdeploy@v1
1720
env:
1821
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1922
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)