Skip to content

Commit 2e11cc8

Browse files
sethaxenclaude
andauthored
ci: Split downgrade CI into its own workflow (#81)
* Separate downgrade CI workflow and run on Julia v1.11 The downgrade CI workflow was failing because it downgrades DimensionalData to a version that doesn't work correctly on Julia v1.12. Following Pathfinder.jl's approach: - Create separate Downgrade.yml workflow file - Run downgrade tests on Julia v1.11 instead of latest - Remove downgrade matrix from main CI.yml workflow This ensures backward compatibility testing without the Julia v1.12 DimensionalData incompatibility issue. * Simplify DOCUMENTER_KEY in CI.yml Since docs workflow only runs on Julia v1, the conditional check is unnecessary. --------- Co-authored-by: Claude <[email protected]>
1 parent 6f087d0 commit 2e11cc8

File tree

2 files changed

+71
-21
lines changed

2 files changed

+71
-21
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
test:
12-
name: ${{ matrix.downgrade && 'Downgrade / ' || '' }}Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.num_threads }} threads
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.num_threads }} threads
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
fail-fast: false
@@ -20,17 +20,11 @@ jobs:
2020
- '1'
2121
- 'pre'
2222
os: ['ubuntu-latest']
23-
downgrade: [false]
2423
num_threads: [2]
2524
include:
2625
- version: '1'
2726
os: 'ubuntu-latest'
2827
num_threads: 1
29-
downgrade: false
30-
- version: 1
31-
os: 'ubuntu-latest'
32-
num_threads: 2
33-
downgrade: true
3428

3529
steps:
3630
- uses: actions/checkout@v6
@@ -40,11 +34,6 @@ jobs:
4034
version: ${{ matrix.version }}
4135
arch: x64
4236
- uses: julia-actions/cache@v2
43-
- uses: julia-actions/julia-downgrade-compat@v2
44-
with:
45-
skip: LinearAlgebra,Printf,Statistics
46-
julia_version: ${{ steps['setup-julia'].outputs.julia-version }}
47-
if: matrix.downgrade
4837
- uses: julia-actions/julia-buildpkg@latest
4938
- uses: julia-actions/julia-runtest@latest
5039
env:
@@ -54,28 +43,21 @@ jobs:
5443
with:
5544
file: lcov.info
5645
docs:
57-
name: ${{ matrix.downgrade && 'Downgrade / ' || '' }}Documentation - Julia ${{ matrix.version }}
46+
name: Documentation - Julia ${{ matrix.version }}
5847
runs-on: ubuntu-latest
5948
strategy:
6049
matrix:
6150
version: ['1']
62-
downgrade: [false, true]
6351
steps:
6452
- uses: actions/checkout@v6
6553
- uses: julia-actions/setup-julia@v2
6654
id: setup-julia
6755
with:
6856
version: ${{ matrix.version }}
6957
- uses: julia-actions/cache@v2
70-
- uses: julia-actions/julia-downgrade-compat@v2
71-
with:
72-
skip: LinearAlgebra,Printf,PSIS,Statistics
73-
projects: ., docs
74-
julia_version: ${{ steps['setup-julia'].outputs.julia-version }}
75-
if: matrix.downgrade
7658
- uses: julia-actions/julia-buildpkg@v1
7759
- uses: julia-actions/julia-docdeploy@v1
7860
env:
7961
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80-
DOCUMENTER_KEY: ${{ matrix.version == '1' && secrets.DOCUMENTER_KEY || '' }}
62+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
8163
GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988

.github/workflows/Downgrade.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Downgrade
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
paths-ignore:
7+
- 'docs/**'
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.num_threads }} threads
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- '1.11'
19+
os: ['ubuntu-latest']
20+
num_threads: [1, 2]
21+
22+
steps:
23+
- uses: actions/checkout@v6
24+
- uses: julia-actions/setup-julia@v2
25+
id: setup-julia
26+
with:
27+
version: ${{ matrix.version }}
28+
arch: x64
29+
- uses: julia-actions/cache@v2
30+
- uses: julia-actions/julia-downgrade-compat@v2
31+
with:
32+
skip: LinearAlgebra,Printf,Statistics
33+
julia_version: ${{ steps['setup-julia'].outputs.julia-version }}
34+
- uses: julia-actions/julia-buildpkg@latest
35+
- uses: julia-actions/julia-runtest@latest
36+
with:
37+
allow_reresolve: false
38+
force_latest_compatible_version: false
39+
env:
40+
JULIA_NUM_THREADS: ${{ matrix.num_threads }}
41+
- uses: julia-actions/julia-processcoverage@v1
42+
- uses: codecov/codecov-action@v5
43+
with:
44+
file: lcov.info
45+
46+
docs:
47+
name: Documentation - Julia ${{ matrix.version }}
48+
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
version: ['1.11']
52+
steps:
53+
- uses: actions/checkout@v6
54+
- uses: julia-actions/setup-julia@v2
55+
id: setup-julia
56+
with:
57+
version: ${{ matrix.version }}
58+
- uses: julia-actions/cache@v2
59+
- uses: julia-actions/julia-downgrade-compat@v2
60+
with:
61+
skip: LinearAlgebra,Printf,PSIS,Statistics
62+
projects: ., docs
63+
julia_version: ${{ steps['setup-julia'].outputs.julia-version }}
64+
- uses: julia-actions/julia-buildpkg@v1
65+
- uses: julia-actions/julia-docdeploy@v1
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
GKSwstype: "100"

0 commit comments

Comments
 (0)