Skip to content

Commit

Permalink
Merge pull request #69 from molmod/CI
Browse files Browse the repository at this point in the history
Fix Github CI
  • Loading branch information
pdobbelaere authored Feb 19, 2025
2 parents 963508c + aeef6a0 commit cf57e19
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/threadpool.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
parsl_log_level: WARNING
retries: 0
ModelEvaluation:
max_simulation_time: 0.4
gpu: false
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/run_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,24 @@ jobs:
init-shell: bash
cache-environment: true
post-cleanup: 'all'
- name: install pip dependencies and execute pytest
- name: Install dependencies and download containers
shell: micromamba-shell {0}
run: |
which pip
pip install pyfftw colorcet wandb pandas plotly plumed 'numpy<2.0.0'
pip install --no-cache-dir git+https://github.com/i-pi/[email protected]
pip install torch==2.5.1
pip install git+https://github.com/acesuit/[email protected]
pip install 'psiflow[dev] @ git+https://github.com/molmod/psiflow.git'
cd ${{ runner.temp }} && git clone https://github.com/molmod/psiflow
cd psiflow
export WANDB_API_KEY=${{ secrets.WANDB_API_KEY }}
apptainer exec oras://ghcr.io/molmod/cp2k:2024.1 ls
apptainer exec oras://ghcr.io/molmod/gpaw:24.1 ls
pytest --skip-gpu --psiflow-config=.github/threadpool.yaml
- name: Checkout specific commit
uses: actions/checkout@v4
- name: Install Psiflow and run tests
shell: micromamba-shell {0}
env:
WANDB_API_KEY: secrets.WANDB_API_KEY
WANDB_MODE: offline # disables WandB server calls
run: |
pip install .[dev]
pip list
pytest --skip-gpu --psiflow-config=.github/threadpool.yaml

0 comments on commit cf57e19

Please sign in to comment.