Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelize CI by splitting Unit Tests and Integration Tests on different Github actions #288

Merged
merged 13 commits into from
Jan 15, 2025
Merged
2 changes: 2 additions & 0 deletions test/integration/Reactant_test.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Reactant

@testset "Reactant" begin
# TODO test `make_tracer`
# TODO test `create_result`
Expand Down
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using Test
using Tenet
using OMEinsum
using Reactant
using Adapt

include("Utils.jl")

const TENET_TEST_GROUP = lowercase(get(ENV, "TENET_TEST_GROUP", "all"))

println("Running tests for group: $TENET_TEST_GROUP")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you use @info we can get nice colors in the logs

Suggested change
println("Running tests for group: $TENET_TEST_GROUP")
@info "Running tests for group: $TENET_TEST_GROUP"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! I think I will remove that, I am putting this now since I think this ENV is not properly set by CI.yml.


if TENET_TEST_GROUP == "all" || TENET_TEST_GROUP == "unit"
@testset "Unit tests" verbose = true begin
include("Helpers_test.jl")
Expand Down
Loading