Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/amorphouspy_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jobs:
- name: Run integration test
shell: bash -l {0}
working-directory: amorphouspy_api
run: |
run: >
flux start
amorphouspy_INTEGRATION=1 uvicorn amorphouspy_api.app:app --port 8002 &
pytest -m integration -s --durations=0 --cov=src/amorphouspy_api --cov-report=xml --cov-report=term --cov-append
env:
EXECUTOR_TYPE: "flux"

- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
Expand Down
4 changes: 4 additions & 0 deletions amorphouspy_api/src/amorphouspy_api/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def get_executor_class() -> type:
from executorlib import SlurmClusterExecutor

return SlurmClusterExecutor
elif executor_type == "flux":
from executorlib import FluxClusterExecutor

return FluxClusterExecutor
else:
# Use TestClusterExecutor for local - it supports wait=False
# (SingleNodeExecutor does not support wait=False)
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- ase >=3.25.0
- cryptography =45.0.7
- executorlib >=1.8.0
- flux-core >=0.81.0
- hatchling
- jupyter
- lammps =2024.08.29=*_openmpi_*
Expand Down
Loading