diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 56035a9c..d3f2cd5f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -36,6 +36,11 @@ jobs: - uses: julia-actions/cache@v3 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + with: + # `auto` resolves to `true` on Dependabot/CompatHelper PRs, which is unsatisfiable on + # older Julia versions once a dependency's newest range drops support for them, + # so only apply it on the newest Julia (matching QuantumKitHubActions/TestGroups.yml). + force_latest_compatible_version: ${{ matrix.version == '1' && 'auto' || 'false' }} - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v7 with: diff --git a/Project.toml b/Project.toml index b20e83f0..75cd2375 100644 --- a/Project.toml +++ b/Project.toml @@ -12,7 +12,7 @@ WignerSymbols = "9f57e263-0b3d-5e2e-b1be-24f2bb48858b" [compat] Aqua = "0.8" HalfIntegers = "1" -JET = "0.9, 0.10, 0.11" +JET = "0.9, 0.10, 0.11, 0.12" julia = "1.10" LinearAlgebra = "1" Random = "1" diff --git a/test/runtests.jl b/test/runtests.jl index 0f50aded..f4f0022a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -376,5 +376,8 @@ end @testset "JET" begin using JET: JET - JET.test_package(TensorKitSectors; target_defined_modules = true) + # JET v0.12 loads empty stubs on unsupported (future) Julia versions + if !isdefined(JET, :JET_AVAILABLE) || JET.JET_AVAILABLE + JET.test_package(TensorKitSectors; target_modules = (TensorKitSectors,)) + end end