Skip to content

Commit

Permalink
Merge pull request #38 from lgoettgens/patch-1
Browse files Browse the repository at this point in the history
Only run doctests for packages with enabled tests
  • Loading branch information
benlorenz authored Sep 12, 2024
2 parents e78e045 + 9a56b27 commit af95048
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "OscarDevTools"
uuid = "4f01c588-2833-446a-9dbd-6331d80acb41"
authors = ["Benjamin Lorenz <[email protected]>"]
version = "0.2.18"
version = "0.2.19"

[deps]
GitHub = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26"
Expand Down
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 af95048

Please sign in to comment.