Skip to content

Commit

Permalink
Add CI for running the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Sep 14, 2023
1 parent cb9b151 commit 4dc1bc8
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defaults:
shell: bash -el {0}

jobs:
main:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,3 +24,38 @@ jobs:
- uses: pre-commit/[email protected]
- uses: pre-commit-ci/[email protected]
if: always()

run-demo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start demo
run: |
./run_demo.sh --exit-when-done
- name: Check for success
run: |
if [ ! -f ".demo/.success" ]; then
echo "Demo failed"
cat ".demo/.failed"
exit 1
fi
# Same as run-demo except mount the sources inside the container
run-demo-mount-sources:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clone source
run: |
git clone https://github.com/DIRACGrid/diracx.git /tmp/diracx
git clone https://github.com/DIRACGrid/DIRAC.git /tmp/DIRAC
- name: Start demo
run: |
./run_demo.sh --exit-when-done /tmp/diracx /tmp/DIRAC
- name: Check for success
run: |
if [ ! -f ".demo/.success" ]; then
echo "Demo failed"
cat ".demo/.failed"
exit 1
fi

0 comments on commit 4dc1bc8

Please sign in to comment.