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 demo ci #34

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Changes from all commits
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
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