Skip to content

Commit 028b7dc

Browse files
Krastanovclaude
andcommitted
Split Julia pre CI into separate workflow and add macOS ARM
Move the Julia pre release testing into its own workflow file (ci-pre.yml) that runs only on ubuntu-latest. The pre workflow strips the JET dependency from test/Project.toml via sed since JET often breaks on pre-release Julia. Also add macOS ARM (aarch64) to the main CI matrix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 496c4b6 commit 028b7dc

3 files changed

Lines changed: 54 additions & 10 deletions

File tree

.github/workflows/ci-pre.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI (Julia pre)
2+
env:
3+
JULIA_NUM_THREADS: 2
4+
concurrency:
5+
# group by workflow and ref; the last slightly strange component ensures that for pull
6+
# requests, we limit to 1 concurrent job, but for the master branch we don't
7+
group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main') || github.run_number }}
8+
# Cancel intermediate builds, but only if it is a pull request build.
9+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
10+
on:
11+
pull_request:
12+
branches:
13+
- master
14+
push:
15+
branches:
16+
- master
17+
tags: '*'
18+
jobs:
19+
test:
20+
name: Julia pre - ubuntu-latest - x64 - ${{ github.event_name }}
21+
runs-on: ubuntu-latest
22+
continue-on-error: true
23+
steps:
24+
- uses: actions/checkout@v6
25+
- uses: julia-actions/setup-julia@v2
26+
with:
27+
version: pre
28+
- uses: julia-actions/cache@v2
29+
- run: sed -i '/JET/d' test/Project.toml
30+
- uses: julia-actions/julia-buildpkg@v1
31+
- uses: julia-actions/julia-runtest@v1
32+
- uses: julia-actions/julia-processcoverage@v1
33+
- uses: codecov/codecov-action@v5
34+
with:
35+
files: lcov.info
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
fail_ci_if_error: false

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ jobs:
2525
version:
2626
- '1'
2727
- '1.10'
28-
- 'pre'
2928
os:
3029
- ubuntu-latest
3130
- macos-latest
3231
- windows-latest
3332
arch:
3433
- x64
34+
include:
35+
- version: '1'
36+
os: macos-latest
37+
arch: aarch64
3538
steps:
3639
- uses: actions/checkout@v6
3740
- uses: julia-actions/setup-julia@v2

test/runtests.jl

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ using Documenter
33
using Graphs
44
using Graphs.SimpleGraphs
55
using Graphs.Experimental
6-
using JET
6+
if isempty(VERSION.prerelease)
7+
using JET
8+
end
79
using Graphs.Test
810
using Test
911
using SparseArrays
@@ -154,14 +156,16 @@ tests = [
154156
]
155157

156158
@testset verbose = true "Graphs" begin
157-
@testset "Code quality (JET.jl)" begin
158-
@assert get_pkg_version("JET") >= v"0.8.4"
159-
JET.test_package(
160-
Graphs;
161-
target_defined_modules=true,
162-
ignore_missing_comparison=true,
163-
mode=:typo, # TODO: switch back to `:basic` once the union split caused by traits is fixed
164-
)
159+
if isempty(VERSION.prerelease)
160+
@testset "Code quality (JET.jl)" begin
161+
@assert get_pkg_version("JET") >= v"0.8.4"
162+
JET.test_package(
163+
Graphs;
164+
target_defined_modules=true,
165+
ignore_missing_comparison=true,
166+
mode=:typo, # TODO: switch back to `:basic` once the union split caused by traits is fixed
167+
)
168+
end
165169
end
166170

167171
@testset "Code quality (Aqua.jl)" begin

0 commit comments

Comments
 (0)