Skip to content

Commit 87390f8

Browse files
author
Patrick Häcker
committed
Use default JET for Julia 1.12 testing
1 parent 3aed98d commit 87390f8

3 files changed

Lines changed: 26 additions & 4 deletions

File tree

.github/workflows/ReusableTest.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
- uses: julia-actions/julia-buildpkg@v1
4545
# On Julia 1.10, `Pkg.test` from the activated project doesn't honor `[sources]`
4646
# path entries (a 1.11+ feature). Dev the path-based test deps into a temp env
47-
# and test by name. Registered deps like JET are resolved normally from the registry
48-
# (1.10 picks the latest 1.10-compatible JET, which is sufficient).
47+
# and test by name. JET resolves normally from the registry.
4948
- name: Run tests (lts path)
5049
if: ${{ inputs.version == 'lts' }}
5150
run: |
@@ -58,8 +57,26 @@ jobs:
5857
])
5958
Pkg.test("EmulatedBitIntegers"; coverage=true,
6059
julia_args=["--check-bounds=yes", "--depwarn=yes"])'
60+
# Julia 1.13 pre-release: registered JET does not yet support 1.13, so dev
61+
# the fork's `julia-1.13-compat` branch into a temp env alongside the path
62+
# deps. Drop this step once a 1.13-compatible JET is released.
63+
# Skips coverage and `--check-bounds=yes` so the `performance invariants`
64+
# testset's exact LLVM op counts (calibrated on 1.11+ clean codegen) get
65+
# exercised; the other jobs run with CI hygiene flags that perturb counts.
66+
- name: Run tests (pre path with JET fork)
67+
if: ${{ inputs.version == 'pre' }}
68+
run: |
69+
julia --color=yes -e '
70+
using Pkg
71+
Pkg.activate(; temp=true)
72+
Pkg.develop([
73+
PackageSpec(path=pwd()),
74+
PackageSpec(path=joinpath(pwd(), "test", "PrecompileTest")),
75+
])
76+
Pkg.add(PackageSpec(url="https://github.com/PatrickHaecker/JET.jl", rev="julia-1.13-compat"))
77+
Pkg.test("EmulatedBitIntegers"; julia_args=["--depwarn=yes"])'
6178
- uses: julia-actions/julia-runtest@v1
62-
if: ${{ inputs.version != 'lts' }}
79+
if: ${{ inputs.version != 'lts' && inputs.version != 'pre' }}
6380
- uses: julia-actions/julia-processcoverage@v1
6481
if: ${{ inputs.run_codecov }}
6582
- uses: codecov/codecov-action@v4

.github/workflows/Test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ jobs:
2929
arch:
3030
- x64
3131
allow_failure: [false]
32+
include:
33+
# Latest Julia pre-release (currently 1.13 rc): JET fork required; allowed to fail.
34+
- version: "pre"
35+
os: ubuntu-latest
36+
arch: x64
37+
allow_failure: true

test/Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1414

1515
[sources]
1616
EmulatedBitIntegers = {path = ".."}
17-
JET = {rev = "julia-1.13-compat", url = "https://github.com/PatrickHaecker/JET.jl"}
1817
PrecompileTest = {path = "PrecompileTest"}

0 commit comments

Comments
 (0)