Skip to content

Commit

Permalink
Only run doctests for packages with enabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Sep 11, 2024
1 parent e78e045 commit 9016ae8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/OscarCI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,15 @@ function github_env_run_doctests(job::Dict; varname::String, filename::String)
"include(\"$(@__DIR__)/doctest_helper.jl\");"
]
for (pkg, param) in job
if get(ENV, "GITHUB_REPOSITORY", "") == "oscar-system/OscarDevTools.jl" &&
get(ENV, "OSCARCI_DONT_SKIP", false) != "true"
# for oscardevtools itself we just check if the package can be loaded
push!(testcmd, """using $pkg;""")
else
if pkg != "Polymake"
push!(testcmd, """using $pkg; @maybe_doctest($pkg);""")
if get(param, "test", false)
if get(ENV, "GITHUB_REPOSITORY", "") == "oscar-system/OscarDevTools.jl" &&
get(ENV, "OSCARCI_DONT_SKIP", false) != "true"
# for oscardevtools itself we just check if the package can be loaded
push!(testcmd, """using $pkg;""")
else
if pkg != "Polymake"
push!(testcmd, """using $pkg; @maybe_doctest($pkg);""")
end
end
end
end
Expand Down

0 comments on commit 9016ae8

Please sign in to comment.