Skip to content

Commit 542c8e4

Browse files
committed
CI: Add a CI job that runs JET tests
1 parent 24cd428 commit 542c8e4

File tree

4 files changed

+47
-1
lines changed

4 files changed

+47
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,17 @@ jobs:
7070
julia --project=docs --color=yes docs/make.jl pdf
7171
env:
7272
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
73+
74+
jet:
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v6
78+
- uses: julia-actions/setup-julia@latest
79+
with:
80+
version: '1.12'
81+
# version: 'nightly'
82+
- name: Edit Distributed UUID
83+
run: |
84+
julia --color=yes -e 'write("Project.toml", replace(read("Project.toml", String), r"uuid = .*?\n" =>"uuid = \"47e2e46d-f89d-539d-b4ee-838fcccc9c8e\"\n"));'
85+
- name:
86+
run: julia --color=yes --project=ci/jet ci/jet/check.jl

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "Distributed"
2-
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
2+
uuid = "47e2e46d-f89d-539d-b4ee-838fcccc9c8e"
33
version = "1.11.0"
44

55
[deps]

ci/jet/Project.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[deps]
2+
Distributed = "47e2e46d-f89d-539d-b4ee-838fcccc9c8e"
3+
Example = "7876af07-990d-54b4-ab0e-23690620f79a"
4+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
5+
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
6+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7+
8+
[sources]
9+
Distributed = {path = "../.."}
10+
11+
[compat]
12+
JET = "0.11"

ci/jet/check.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Distributed: Distributed
2+
3+
using JET: JET
4+
using Serialization: Serialization
5+
using Test: Test, @testset
6+
7+
# We don't want to fail PkgEval because of a JET failure
8+
# Therefore, we don't put the JET tests in the regular Distributed test suite
9+
# Instead, we put it in a separate CI job, which runs on the Distributed repo
10+
11+
@testset "JET" begin
12+
ignored_modules = (
13+
# We will ignore Base:
14+
Base,
15+
16+
# We'll ignore the Serialization stdlib:
17+
Serialization,
18+
)
19+
JET.test_package(Distributed; ignored_modules)
20+
end

0 commit comments

Comments
 (0)