-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up GitHub Actions Workflow for Testing Parsl with Flux (#3159)
This pull request introduces a new GitHub Actions workflow aimed at testing Parsl's integration with Flux.
- Loading branch information
1 parent
b9aa3dd
commit 5973f39
Showing
3 changed files
with
63 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test Flux Scheduler | ||
on: | ||
pull_request: [] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
packages: read | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
container: ['fluxrm/flux-sched:jammy'] | ||
timeout-minutes: 30 | ||
|
||
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@v3 | ||
|
||
- name: Install Dependencies and Parsl | ||
run: | | ||
apt-get update && apt-get install -y python3-pip curl | ||
pip3 install . -r test-requirements.txt | ||
- name: Verify Parsl Installation | ||
run: | | ||
pytest parsl/tests/ -k "not cleannet and not unix_filesystem_permissions_required" --config parsl/tests/configs/local_threads.py --random-order --durations 10 | ||
- name: Start Flux and Test Parsl with Flux | ||
run: | | ||
flux start pytest parsl/tests/test_flux.py --config local --random-order | ||
- name: Test Parsl with Flux Config | ||
run: | | ||
flux start pytest parsl/tests/ -k "not cleannet and not unix_filesystem_permissions_required" --config parsl/tests/configs/flux_local.py --random-order --durations 10 | ||
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
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,11 @@ | ||
from parsl.config import Config | ||
from parsl.executors import FluxExecutor | ||
|
||
|
||
def fresh_config(): | ||
return Config( | ||
executors=[FluxExecutor()], | ||
) | ||
|
||
|
||
config = fresh_config() |