Skip to content

Commit 9dcba11

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

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

.github/workflows/Tests.yml

Lines changed: 21 additions & 12 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
@@ -66,7 +75,7 @@ jobs:
6675
echo "Architecture: ${{ matrix.arch }}"
6776
echo "Julia version: ${{ matrix.version }}"
6877
echo "Number of threads: ${{ matrix.num_threads }}"
69-
echo "Test arguments: ${{ matrix.test-args }}"
78+
echo "Test arguments: ${{ matrix.test.args }}"
7079
- name: (De)activate coverage analysis
7180
run: echo "COVERAGE=${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' && matrix.num_threads == 2 }}" >> "$GITHUB_ENV"
7281
shell: bash
@@ -81,7 +90,7 @@ jobs:
8190
# Custom calls of Pkg.test tend to miss features such as e.g. adjustments for CompatHelper PRs
8291
# Ref https://github.com/julia-actions/julia-runtest/pull/73
8392
- 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 }}
93+
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 }}
8594
- uses: julia-actions/julia-processcoverage@v1
8695
if: ${{ env.COVERAGE }}
8796
- 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)