Skip to content

Commit

Permalink
use branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Mar 28, 2024
1 parent 2c36d8a commit fbedb1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/globus-compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
def run_test(name, build, branch):
import subprocess

install = subprocess.run(["./install-test.sh "+name+" "+branch], shell=True, encoding="utf_8", stdout=subprocess.PIPE)
install = subprocess.run(["./install-test.sh "+name+" "+branch], shell=True, encoding="utf_8", stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if install.returncode == 1:
return (install, None, None)

summary = subprocess.run(["./run-test.sh "+name+" "+build], shell=True, encoding="utf_8", stdout=subprocess.PIPE)
summary = subprocess.run(["./run-test.sh "+name+" "+build], shell=True, encoding="utf_8", stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if summary.returncode == 1:
return (install, summary, None)

Expand All @@ -38,7 +38,6 @@ def run_test(name, build, branch):
result = future.result()

os.popen("mkdir -p "+name+"-result").read()

with open(name+"-result/Build.log", "w") as text_file:
text_file.write("%s" % result[0].stdout)
text_file.close()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/perlmutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
export FUNCX_SDK_CLIENT_ID="$GLOBUS_ID"
export FUNCX_SDK_CLIENT_SECRET="$GLOBUS_SECRET"
python globus-compute.py master
python globus-compute.py ${{ github.sha }}
- name: print build log
working-directory: omega_h/.github/workflows
Expand Down

0 comments on commit fbedb1a

Please sign in to comment.