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