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

Add self hosted runner to get GPU testing on CSD3 #139

Closed
wants to merge 22 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
return the outputs please
jagoosw committed Sep 8, 2023
commit 441837607aecebc5d7bbd6da1757fa488e5d111a
8 changes: 4 additions & 4 deletions .github/workflows/check_tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if ["$(/home/js2430/rds/hpc-work/OceanBioME-runner/_work/_temp/julia-1.9.3/bin/julia -O0 --color=yes --project test/gpu_runtests.jl)" == ""]; then
echo "true" > "results.test";
/home/js2430/rds/hpc-work/OceanBioME-runner/_work/_temp/julia-1.9.3/bin/julia -O0 --color=yes --project test/gpu_runtests.jl > "output.test"; ec=$?
if [ $ec -eq 0 ]; then
echo "1" > "results.test";
else
echo "false" > "results.test";
echo "0" > "results.test";
fi
6 changes: 6 additions & 0 deletions test/check_results.jl
Original file line number Diff line number Diff line change
@@ -9,4 +9,10 @@ result = open("results.test") do file
read(file, String)
end

output = open("output.test") do file
read(file, String)
end

println(output)

result == 0 ? error("Tests failed") : nothing