Skip to content

Commit 03b4bc0

Browse files
committed
CI: Add a CI job that runs the JET tests
1 parent d8f44f5 commit 03b4bc0

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
1616
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
test:
2023
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -45,6 +48,8 @@ jobs:
4548

4649
steps:
4750
- uses: actions/checkout@v6
51+
with:
52+
persist-credentials: false
4853
- uses: julia-actions/setup-julia@v2
4954
with:
5055
version: ${{ matrix.version }}
@@ -73,6 +78,8 @@ jobs:
7378
runs-on: ubuntu-latest
7479
steps:
7580
- uses: actions/checkout@v6
81+
with:
82+
persist-credentials: false
7683
- uses: julia-actions/setup-julia@latest
7784
with:
7885
version: '1'
@@ -82,3 +89,17 @@ jobs:
8289
env:
8390
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8491
run: julia --project=docs/ docs/make.jl
92+
93+
jet:
94+
runs-on: ubuntu-latest
95+
steps:
96+
- uses: actions/checkout@v6
97+
with:
98+
persist-credentials: false
99+
- uses: julia-actions/setup-julia@latest
100+
with:
101+
version: '1.12'
102+
# version: 'nightly'
103+
- run: julia --color=yes --project=ci/jet -e 'import Pkg; Pkg.instantiate()'
104+
- name: Run the JET tests
105+
run: julia --color=yes --project=ci/jet ci/jet/check.jl

ci/jet/Project.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[deps]
2+
DistributedNext = "fab6aee4-877b-4bac-a744-3eca44acbb6f"
3+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
4+
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
5+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6+
7+
[sources]
8+
DistributedNext = {path = "../.."}
9+
10+
[compat]
11+
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 DistributedNext: DistributedNext
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 DistributedNext test suite
9+
# Instead, we put it in a separate CI job, which runs on the DistributedNext 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(DistributedNext; ignored_modules)
20+
end

0 commit comments

Comments
 (0)