Skip to content

Commit bce070e

Browse files
committed
Add a CI job that runs the JET tests
1 parent d43b640 commit bce070e

4 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,15 @@ jobs:
5959
# If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors.
6060
# If this is not a PR, then DO fail CI if the Codecov upload errors.
6161
fail_ci_if_error: ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }}
62+
63+
jet:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v6
67+
- uses: julia-actions/setup-julia@latest
68+
with:
69+
version: '1.12'
70+
# version: 'nightly'
71+
- run: julia --color=yes --project=ci/jet -e 'import Pkg; Pkg.instantiate()'
72+
- name: Run the JET tests
73+
run: julia --color=yes --project=ci/jet ci/jet/check.jl

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Manifest.toml

ci/jet/Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[deps]
2+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
3+
SlurmClusterManager = "c82cd089-7bf7-41d7-976b-6b5d413cbe0a"
4+
5+
[sources]
6+
SlurmClusterManager = {path = "../.."}
7+
8+
[compat]
9+
JET = "0.11"

ci/jet/check.jl

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

0 commit comments

Comments
 (0)