Skip to content

Commit 42a709a

Browse files
authored
Merge pull request #42 from JuliaTesting/mh/ci
Update CI setup, set up Dependabot
2 parents b12d200 + d85ec7b commit 42a709a

7 files changed

Lines changed: 60 additions & 48 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/CI.yml

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,49 +15,48 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
version:
18-
- "1.6" # LTS
18+
- "1.0" # oldest supported version
19+
- "1.6" # previous LTS release
20+
- "lts"
1921
- "1" # Latest Release
2022
os:
2123
- ubuntu-latest
2224
- macOS-latest
2325
- windows-latest
2426
arch:
25-
- x64
26-
- x86
27+
- default
2728
exclude:
28-
# Test 32-bit only on Linux
29+
# macOS default arch is ARM these days which requires Julia >= 1.8
30+
- os: macOS-latest
31+
version: "1.0"
2932
- os: macOS-latest
33+
version: "1.6"
34+
include:
35+
# Test 32-bit only on Linux
36+
- os: ubuntu-latest
3037
arch: x86
31-
- os: windows-latest
38+
version: "lts"
39+
- os: ubuntu-latest
3240
arch: x86
41+
version: "1"
3342
steps:
34-
- uses: actions/checkout@v2
35-
- uses: julia-actions/setup-julia@v1
43+
- uses: actions/checkout@v6
44+
- uses: julia-actions/setup-julia@v2
3645
with:
3746
version: ${{ matrix.version }}
3847
arch: ${{ matrix.arch }}
39-
- uses: actions/cache@v2
40-
env:
41-
cache-name: cache-artifacts
42-
with:
43-
path: ~/.julia/artifacts
44-
key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
45-
restore-keys: |
46-
${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-
47-
${{ runner.os }}-${{ matrix.arch }}-test-
48-
${{ runner.os }}-${{ matrix.arch }}-
49-
${{ runner.os }}-
50-
- uses: julia-actions/julia-buildpkg@latest
51-
- uses: julia-actions/julia-runtest@latest
48+
- uses: julia-actions/cache@v2
49+
- uses: julia-actions/julia-buildpkg@v1
50+
- uses: julia-actions/julia-runtest@v1
5251
- uses: julia-actions/julia-processcoverage@v1
53-
- uses: codecov/codecov-action@v1
52+
- uses: codecov/codecov-action@v5
5453
with:
55-
file: lcov.info
54+
token: ${{ secrets.CODECOV_TOKEN }}
5655

5756
slack:
5857
name: Notify Slack Failure
5958
needs: test
60-
runs-on: ubuntu-latest
59+
runs-on: ubuntu-slim
6160
if: always() && github.event_name == 'schedule'
6261
steps:
6362
- uses: technote-space/workflow-conclusion-action@v2
@@ -74,12 +73,12 @@ jobs:
7473
name: Documentation
7574
runs-on: ubuntu-latest
7675
steps:
77-
- uses: actions/checkout@v2
78-
- uses: julia-actions/setup-julia@v1
76+
- uses: actions/checkout@v6
77+
- uses: julia-actions/setup-julia@v2
7978
with:
80-
version: '1'
79+
version: 'lts'
8180
- run: |
82-
julia --project=docs -e '
81+
julia --project=docs --color -e '
8382
using Pkg
8483
Pkg.develop(PackageSpec(path=pwd()))
8584
Pkg.instantiate()

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66
jobs:
77
CompatHelper:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-slim
99
steps:
1010
- name: Pkg.add("CompatHelper")
1111
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'

.github/workflows/JuliaNightly.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,15 @@ jobs:
88
name: Julia Nightly - Ubuntu - x64
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: julia-actions/setup-julia@v1
11+
- uses: actions/checkout@v6
12+
- uses: julia-actions/setup-julia@v2
1313
with:
1414
version: nightly
1515
arch: x64
16-
- uses: actions/cache@v2
17-
env:
18-
cache-name: julianightly-cache-artifacts
19-
with:
20-
path: ~/.julia/artifacts
21-
key: ${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
22-
restore-keys: |
23-
${{ env.cache-name }}-
24-
- uses: julia-actions/julia-buildpkg@latest
25-
- uses: julia-actions/julia-runtest@latest
16+
- uses: julia-actions/cache@v2
17+
- uses: julia-actions/julia-buildpkg@v1
18+
- uses: julia-actions/julia-runtest@v1
2619
- uses: julia-actions/julia-processcoverage@v1
27-
- uses: codecov/codecov-action@v1
20+
- uses: codecov/codecov-action@v5
2821
with:
29-
file: lcov.info
22+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/TagBot.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
name: TagBot
2+
23
on:
34
issue_comment:
45
types:
56
- created
67
workflow_dispatch:
8+
inputs:
9+
lookback:
10+
default: 3
11+
712
jobs:
813
TagBot:
914
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
10-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-slim
1116
steps:
1217
- uses: JuliaRegistries/TagBot@v1
1318
with:

.github/workflows/blue_style_formatter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55

66
jobs:
77
format:
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-slim
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: julia-actions/setup-julia@latest
10+
- uses: actions/checkout@v6
11+
- uses: julia-actions/setup-julia@v2
1212
with:
1313
version: 1
1414
- run: |

test/type_utils.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,19 @@
5858
@test isempty(parameters(Bool))
5959

6060
# type-vars in signatures
61-
s = only(parameters(TypeVar(:T)))
61+
p = parameters(TypeVar(:T))
62+
@test length(p) == 1
63+
s = first(p)
6264
@test s.name == :T
6365
@test s.lb == Union{}
6466
@test s.ub == Any
6567

6668
# https://github.com/JuliaTesting/ExprTools.jl/issues/39
6769
@testset "#39" begin
6870
s = signature(Tuple{Type{T},T} where {T<:Number})
69-
@test only(s[:whereparams]).args[1] == :T
71+
w = s[:whereparams]
72+
@test length(w) == 1
73+
@test first(w).args[1] == :T
7074
end
7175
end
7276
end

0 commit comments

Comments
 (0)