-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add basic ci to run batch and submit examples
Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: jobspec test | ||
name: lint jobspec | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |