Skip to content

Commit

Permalink
test: add basic ci to run batch and submit examples
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Mar 18, 2024
1 parent dfab7eb commit 7676a1c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: jobspec test
name: lint jobspec

on:
push:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: test jobspec
on:
pull_request: []

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container: ['fluxrm/flux-sched:jammy']

container:
image: ${{ matrix.container }}
options: "--platform=linux/amd64 --user root -it --init"

name: ${{ matrix.container }}
steps:
- name: Make Space
run: |
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
- name: Checkout
uses: actions/checkout@v4

- name: Install jobspec
run: |
apt-get update && apt-get install -y python3-pip
pip3 install .
# Any additional examples added here will be tested
- name: Start Flux and Run Examples
run: |
which jobspec
flux start jobspec run hello-world-jobspec.yaml
flux start jobspec run hello-world-batch.yaml

0 comments on commit 7676a1c

Please sign in to comment.