Skip to content

Commit

Permalink
Added flux test config
Browse files Browse the repository at this point in the history
  • Loading branch information
mercybassey committed Mar 12, 2024
1 parent 448ae1f commit 0b8676f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/parsl+flux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
container: ['fluxrm/flux-sched:focal']
container: ['flux-sched:jammy']
timeout-minutes: 5

container:
Expand Down Expand Up @@ -39,5 +39,6 @@ jobs:
- name: Start Flux and Test Parsl with Flux
run: |
flux start pytest parsl/tests/test_flux.py --config local --random-order
flux start pytest parsl/tests/ -k "not cleannet" --config parsl/tests/configs/flux_local.py --random-order --durations 10
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ coverage: ## show the coverage report
clean: ## clean up the environment by deleting the .venv, dist, eggs, mypy caches, coverage info, etc
rm -rf .venv $(DEPS) dist *.egg-info .mypy_cache build .pytest_cache .coverage runinfo_* $(WORKQUEUE_INSTALL)

# .PHONY: flux_local_test
# flux_local_test:
# pip3 install .
# pytest parsl/tests/ -k "not cleannet" --config parsl/tests/configs/flux_local.py --random-order --durations 10
.PHONY: flux_local_test
flux_local_test:
pip3 install .
pytest parsl/tests/ -k "not cleannet" --config parsl/tests/configs/flux_local.py --random-order --durations 10

13 changes: 13 additions & 0 deletions parsl/tests/configs/flux_local.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from parsl.config import Config
from parsl.executors import FluxExecutor


def fresh_config():
return Config(
executors=[FluxExecutor()],
)



config = fresh_config()

0 comments on commit 0b8676f

Please sign in to comment.