From bce070efe9ce76713d97c5df2d4ee99e590c8d14 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Sat, 14 Feb 2026 01:49:50 -0500 Subject: [PATCH] Add a CI job that runs the JET tests --- .github/workflows/ci.yml | 12 ++++++++++++ .gitignore | 1 + ci/jet/Project.toml | 9 +++++++++ ci/jet/check.jl | 16 ++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 .gitignore create mode 100644 ci/jet/Project.toml create mode 100644 ci/jet/check.jl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 998d222..820f1ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,3 +59,15 @@ jobs: # If this PR is NOT from a fork, then DO fail CI if the Codecov upload errors. # If this is not a PR, then DO fail CI if the Codecov upload errors. fail_ci_if_error: ${{ github.event_name != 'pull_request' || github.repository == github.event.pull_request.head.repo.full_name }} + + jet: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: julia-actions/setup-julia@latest + with: + version: '1.12' + # version: 'nightly' + - run: julia --color=yes --project=ci/jet -e 'import Pkg; Pkg.instantiate()' + - name: Run the JET tests + run: julia --color=yes --project=ci/jet ci/jet/check.jl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba39cc5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Manifest.toml diff --git a/ci/jet/Project.toml b/ci/jet/Project.toml new file mode 100644 index 0000000..b8fdb77 --- /dev/null +++ b/ci/jet/Project.toml @@ -0,0 +1,9 @@ +[deps] +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +SlurmClusterManager = "c82cd089-7bf7-41d7-976b-6b5d413cbe0a" + +[sources] +SlurmClusterManager = {path = "../.."} + +[compat] +JET = "0.11" diff --git a/ci/jet/check.jl b/ci/jet/check.jl new file mode 100644 index 0000000..1bc3089 --- /dev/null +++ b/ci/jet/check.jl @@ -0,0 +1,16 @@ +using SlurmClusterManager: SlurmClusterManager + +using JET: JET +using Test: Test, @testset + +# We don't want to fail PkgEval because of a JET failure +# Therefore, we don't put the JET tests in the regular Distributed test suite +# Instead, we put it in a separate CI job, which runs on the Distributed repo + +@testset "JET" begin + ignored_modules = ( + # We will ignore Base: + Base, + ) + JET.test_package(SlurmClusterManager; ignored_modules) +end