Skip to content

Commit

Permalink
detect if running in CI and print more info if so
Browse files Browse the repository at this point in the history
  • Loading branch information
sumiya11 committed Apr 1, 2024
1 parent 450f4ac commit 8f0f985
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Test
using TestSetExtensions
using InteractiveUtils

using AbstractAlgebra
using Random
Expand All @@ -12,6 +13,17 @@ using Groebner
Groebner.invariants_enabled() = true
Groebner.logging_enabled() = true

function is_github_ci()
return parse(Bool, get(ENV, "GITHUB_ACTIONS", "false"))
end

if is_github_ci()
@info "Running in a Github CI job. Printing specs!"
versioninfo(verbose=true)
else
versioninfo()
end

# Taken from JuMP/test/solvers.jl
function try_import(name::Symbol)
try
Expand Down

0 comments on commit 8f0f985

Please sign in to comment.