test for flux #12
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
name: Test Flux Scheduler | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
strategy: | |
fail-fast: false | |
matrix: | |
container: ['fluxrm/flux-sched:focal-v0.28.0'] | |
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 | |
run: | | |
apt-get update && apt-get install -y python3-venv | |
export PATH=$PWD/bin:$PATH | |
ln -s /usr/bin/python3 /usr/bin/python | |
pip install --upgrade pip && pip install -e ".[test,psij]" && python -c 'import pydra; print(pydra.__version__)' | |
- name: Start Flux and Run Test | |
run: | | |
export PATH=$PWD/bin:$PATH | |
flux start python -V | |
flux start pytest --color=yes -vs --cov pydra --cov-config /pydra/.coveragerc --cov-report xml:/pydra/cov.xml --doctest-modules /pydra/pydra/ |