Skip to content

Commit

Permalink
Update PkgEval workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktchu committed Jun 29, 2024
1 parent 85db8ba commit 2fc5b20
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/PkgEval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,30 @@ jobs:
- name: Run PkgEval
shell: julia --project=. {0}
run: |
PKG_NAME = "TestTools"
BRANCH = ENV["GITHUB_REF_NAME"]
using PkgEval
config = Configuration(; julia="nightly");
package = Package(; name="TestTools", rev=BRANCH)
println("##################################################")
package = Package(; name=PKG_NAME, rev=BRANCH)
horizontal_rule = "#"^80
println(horizontal_rule)
println("PkgEval Configuration")
@show config
@show package
println("##################################################")
println(horizontal_rule)
result = PkgEval.evaluate_test(config, package; echo=true)
println("##################################################")
@show result.version
@show result.duration
@show result.status
@show result.reason
println(horizontal_rule)
if !ismissing(result.version)
println("$(PKG_NAME) Version: v$(result.version)")
end
println("PkgEval runtime: $(result.duration)s")
println("PkgEval status: $(result.status)")
if !ismissing(result.reason)
println("Failure reason: $(result.reason)")
end
exit(result.status == :ok ? 0 : 1)

0 comments on commit 2fc5b20

Please sign in to comment.