From 7676a1cc6e73a0f030f5dd1502b66a3235c3a9b5 Mon Sep 17 00:00:00 2001 From: vsoch Date: Mon, 18 Mar 2024 16:42:39 -0600 Subject: [PATCH] test: add basic ci to run batch and submit examples Signed-off-by: vsoch --- .github/workflows/main.yaml | 2 +- .github/workflows/test.yaml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c74aa07..dd390d1 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,4 +1,4 @@ -name: jobspec test +name: lint jobspec on: push: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..32cd0a9 --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 \ No newline at end of file