Skip to content

Commit cfc7dfb

Browse files
committed
Update CI
1 parent 853398d commit cfc7dfb

File tree

5 files changed

+38
-29
lines changed

5 files changed

+38
-29
lines changed

.github/workflows/CI.yml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,57 +8,60 @@ on:
88
- master
99
tags: '*'
1010
workflow_dispatch:
11+
12+
concurrency:
13+
# Skip intermediate builds: all builds except for builds on the `master` branch
14+
# Cancel intermediate builds: only pull request builds
15+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
16+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
17+
1118
jobs:
1219
test:
13-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
20+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
1421
runs-on: ${{ matrix.os }}
1522
strategy:
1623
fail-fast: false
1724
matrix:
1825
version:
19-
- '1.0'
20-
- '1.6'
26+
- 'min'
27+
- 'lts'
2128
- '1'
22-
- 'nightly'
29+
- 'pre'
2330
os:
2431
- ubuntu-latest
25-
arch:
26-
- x64
32+
- windows-latest
33+
- macOS-latest
34+
exclude:
35+
# For Julia 1.6 no aarch64 binary exists
36+
- version: 'min'
37+
os: macOS-latest
38+
include:
39+
- version: 'min'
40+
os: macOS-13 # uses x64
2741
steps:
28-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@v5
2943
- uses: julia-actions/setup-julia@v2
3044
with:
3145
version: ${{ matrix.version }}
32-
arch: ${{ matrix.arch }}
33-
- uses: actions/cache@v4
34-
env:
35-
cache-name: cache-artifacts
36-
with:
37-
path: ~/.julia/artifacts
38-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39-
restore-keys: |
40-
${{ runner.os }}-test-${{ env.cache-name }}-
41-
${{ runner.os }}-test-
42-
${{ runner.os }}-
46+
- uses: julia-actions/cache@v2
4347
- uses: julia-actions/julia-buildpkg@v1
4448
- uses: julia-actions/julia-runtest@v1
4549
- uses: julia-actions/julia-processcoverage@v1
4650
- uses: codecov/codecov-action@v5
4751
with:
48-
file: lcov.info
52+
files: lcov.info
53+
token: ${{ secrets.CODECOV_TOKEN }}
54+
fail_ci_if_error: true
4955
docs:
5056
name: Documentation
5157
runs-on: ubuntu-latest
5258
steps:
53-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@v5
5460
- uses: julia-actions/setup-julia@v2
5561
with:
5662
version: '1'
57-
- run: |
58-
julia --project=docs -e '
59-
using Pkg
60-
Pkg.develop(PackageSpec(path=pwd()))
61-
Pkg.instantiate()'
63+
- uses: julia-actions/cache@v2
64+
- run: julia --project=docs -e 'import Pkg; Pkg.instantiate()'
6265
- run: |
6366
julia --project=docs -e '
6467
using Documenter: doctest

.github/workflows/CompatHelper.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ jobs:
2424
- name: "Run CompatHelper"
2525
run: |
2626
import CompatHelper
27-
CompatHelper.main()
27+
CompatHelper.main(; dirs = ["", "docs"])
2828
shell: julia --color=yes {0}
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
# COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
32-
# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
31+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Manifest.toml
22
*.jl.cov
33
*.jl.mem
44
.DS_Store
5+
.vscode/

docs/Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
[deps]
22
DistributedArrays = "aaf54ef3-cdf8-58ed-94cc-d582ad619b94"
33
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
4+
5+
[compat]
6+
DistributedArrays = "0.6"
7+
Documenter = "1"
8+
9+
[sources.DistributedArrays]
10+
path = ".."

test/REQUIRE

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)