diff --git a/.github/workflows/flux_testing.yml b/.github/workflows/flux_testing.yml new file mode 100644 index 0000000000..bb8dd4b5d2 --- /dev/null +++ b/.github/workflows/flux_testing.yml @@ -0,0 +1,44 @@ +name: Test Parsl with Flux Scheduler +on: + pull_request: + types: [opened, synchronize] + +jobs: + main-test-suite: + runs-on: ubuntu-latest + permissions: + packages: read + strategy: + fail-fast: false + matrix: + container: ['fluxrm/flux-sched:focal'] + + 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 Parsl + uses: actions/checkout@v3 + with: + repository: 'parsl/parsl' + ref: 'main' # or any specific branch + + - name: Install Parsl and Dependencies + run: | + apt-get update && apt-get install -y python3-pip curl + pip3 install . + + - name: Run Parsl local thread tests + run: | + make local_thread_test + + - name: Test Parsl with Flux + run: | + pytest parsl/tests/test_flux.py