Skip to content

Commit b7e2369

Browse files
committed
Require Julia >= 1.9
1 parent e25c2c0 commit b7e2369

File tree

2 files changed

+24
-21
lines changed

2 files changed

+24
-21
lines changed

.github/workflows/Tests.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,34 @@ on:
88

99
jobs:
1010
test:
11+
# Use matrix.test.name here to avoid it taking up the entire window width
12+
name: test ${{matrix.test.name}} (${{ matrix.os }}, ${{ matrix.version }}, ${{ matrix.arch }}, ${{ matrix.num_threads }})
1113
runs-on: ${{ matrix.os }}
1214
continue-on-error: ${{ matrix.version == 'nightly' }}
1315

1416
strategy:
1517
fail-fast: false
1618
matrix:
17-
test-args:
19+
test:
1820
# Run some of the slower test files individually. The last one catches everything
1921
# not included in the others.
20-
- "essential/ad.jl"
21-
- "mcmc/gibbs.jl"
22-
- "mcmc/hmc.jl"
23-
- "mcmc/abstractmcmc.jl"
24-
- "mcmc/Inference.jl"
25-
- "experimental/gibbs.jl"
26-
- "mcmc/ess.jl"
27-
- "--skip essential/ad.jl mcmc/gibbs.jl mcmc/hmc.jl mcmc/abstractmcmc.jl mcmc/Inference.jl experimental/gibbs.jl mcmc/ess.jl"
22+
- name: "essential/ad"
23+
args: "essential/ad.jl"
24+
- name: "mcmc/gibbs"
25+
args: "mcmc/gibbs.jl"
26+
- name: "mcmc/hmc"
27+
args: "mcmc/hmc.jl"
28+
- name: "mcmc/abstractmcmc"
29+
args: "mcmc/abstractmcmc.jl"
30+
- name: "mcmc/Inference"
31+
args: "mcmc/Inference.jl"
32+
- name: "experimental/gibbs"
33+
args: "experimental/gibbs.jl"
34+
- name: "mcmc/ess"
35+
args: "mcmc/ess.jl"
36+
- name: "everything else"
37+
args: "--skip essential/ad.jl mcmc/gibbs.jl mcmc/hmc.jl mcmc/abstractmcmc.jl mcmc/Inference.jl experimental/gibbs.jl mcmc/ess.jl"
2838
version:
29-
- '1.7'
3039
- '1'
3140
os:
3241
- ubuntu-latest
@@ -39,12 +48,8 @@ jobs:
3948
- 1
4049
- 2
4150
exclude:
42-
# With Windows and macOS, only run Julia 1.7, x64, 2 threads. We just want to see
51+
# With Windows and macOS, only run x64, 2 threads. We just want to see
4352
# some combination work on OSes other than Ubuntu.
44-
- os: windows-latest
45-
version: '1'
46-
- os: macOS-latest
47-
version: '1'
4853
- os: windows-latest
4954
arch: x86
5055
- os: macOS-latest
@@ -53,9 +58,7 @@ jobs:
5358
num_threads: 1
5459
- os: macOS-latest
5560
num_threads: 1
56-
# It's sufficient to test x86 with one version of Julia and one thread.
57-
- version: '1'
58-
arch: x86
61+
# It's sufficient to test x86 with one thread.
5962
- num_threads: 2
6063
arch: x86
6164

@@ -66,7 +69,7 @@ jobs:
6669
echo "Architecture: ${{ matrix.arch }}"
6770
echo "Julia version: ${{ matrix.version }}"
6871
echo "Number of threads: ${{ matrix.num_threads }}"
69-
echo "Test arguments: ${{ matrix.test-args }}"
72+
echo "Test arguments: ${{ matrix.test.args }}"
7073
- name: (De)activate coverage analysis
7174
run: echo "COVERAGE=${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 2 }}" >> "$GITHUB_ENV"
7275
shell: bash
@@ -81,7 +84,7 @@ jobs:
8184
# Custom calls of Pkg.test tend to miss features such as e.g. adjustments for CompatHelper PRs
8285
# Ref https://github.com/julia-actions/julia-runtest/pull/73
8386
- name: Call Pkg.test
84-
run: julia --color=yes --inline=yes --depwarn=yes --check-bounds=yes --threads=${{ matrix.num_threads }} --project=@. -e 'import Pkg; Pkg.test(; coverage=parse(Bool, ENV["COVERAGE"]), test_args=ARGS)' -- ${{ matrix.test-args }}
87+
run: julia --color=yes --inline=yes --depwarn=yes --check-bounds=yes --threads=${{ matrix.num_threads }} --project=@. -e 'import Pkg; Pkg.test(; coverage=parse(Bool, ENV["COVERAGE"]), test_args=ARGS)' -- ${{ matrix.test.args }}
8588
- uses: julia-actions/julia-processcoverage@v1
8689
if: ${{ env.COVERAGE }}
8790
- uses: codecov/codecov-action@v4

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Statistics = "1.6"
8787
StatsAPI = "1.6"
8888
StatsBase = "0.32, 0.33, 0.34"
8989
StatsFuns = "0.8, 0.9, 1"
90-
julia = "1.7"
90+
julia = "1.9"
9191

9292
[extras]
9393
DynamicHMC = "bbc10e6e-7c05-544b-b16e-64fede858acb"

0 commit comments

Comments
 (0)