Skip to content

Commit

Permalink
Fix cloud-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
satyaog committed May 24, 2024
1 parent 9ec6152 commit 7d15073
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions .github/workflows/cloud-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests
name: cloud-tests

on:
# Runs for pull requests
Expand Down Expand Up @@ -84,30 +84,17 @@ jobs:
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >>~/.aws/credentials
chmod -R a-rwx,u+rwX ~/.aws ~/.ssh
- name: start covalent server
run: |
poetry run -- python3 -m milabench.scripts.covalent serve start --develop
- name: setup cloud
run: |
_system=$(
poetry run milabench cloud \
--setup \
--run-on ${{ matrix.run_on }}
)
{ read _hash ; }< <(
echo -n "$_system" | while read l
do
if [[ "$l" == "# hash::>"* ]]
then
echo -n "${l#*::>}"
fi
done
echo
)
if [[ -z "${_hash}" ]]
then
>&2 echo "Failed to fetch system config hash"
exit 1
fi
echo -n "$_system" >$MILABENCH_SYSTEM.$_hash
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.$_hash" >>$GITHUB_ENV
--run-on ${{ matrix.run_on }} \
--system "$MILABENCH_SYSTEM" >$MILABENCH_SYSTEM.${{ matrix.run_on }}
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.${{ matrix.run_on }}" >>$GITHUB_ENV
- name: install benchmarks
run: |
Expand Down Expand Up @@ -139,3 +126,8 @@ jobs:
--teardown \
--run-on ${{ matrix.run_on }} \
--all
- name: debug logs
if: always()
run: |
cat ~/.cache/covalent/covalent_ui.log

0 comments on commit 7d15073

Please sign in to comment.