Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ on:
tags: '*'
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ matrix.group }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
group:
- All
- nopre
version:
- 'lts'
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
Expand All @@ -22,6 +25,9 @@ jobs:
- ubuntu-latest
arch:
- x64
exclude:
- group: nopre
version: 'pre'
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
Expand All @@ -40,6 +46,8 @@ jobs:
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
InvertedIndices = "41ab1584-1d38-5bbf-9106-f11c6c58b48f"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
LabelledArrays = "2ee39098-c373-598a-b85f-a56591580800"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Expand Down
7 changes: 7 additions & 0 deletions test/nopre/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[deps]
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
JET = "0.9, 0.10, 0.11"
File renamed without changes.
26 changes: 21 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
using Pkg
using Test

const GROUP = get(ENV, "GROUP", "All")

function activate_nopre_env()
Pkg.activate("nopre")
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
Pkg.instantiate()
end

# Handle nopre group separately - requires its own environment
if GROUP == "nopre"
activate_nopre_env()
@testset "JET" begin
include("nopre/jet_tests.jl")
end
exit(0) # Exit after nopre tests
end

# Main test group (GROUP == "All" or default)
using ComponentArrays
using BenchmarkTools
using ForwardDiff
Expand All @@ -7,7 +28,6 @@ using LabelledArrays
using LinearAlgebra
using StaticArrays
using OffsetArrays
using Test
using Unitful
using Functors

Expand Down Expand Up @@ -982,7 +1002,3 @@ end
@testset "Reactant" begin
include("reactant_tests.jl")
end

@testset "JET" begin
include("jet_tests.jl")
end
Loading