pytest-CI #280
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: CI | |
run-name: pytest-CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test-py310: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: eWaterCycle/setup-apptainer@v2 | |
with: | |
apptainer-version: 1.3.0 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '2.0.5-0' | |
environment-name: 'test-env' | |
generate-run-shell: true | |
create-args: >- | |
python=3.10 | |
ndcctools==7.11.1 | |
pip | |
-c conda-forge | |
init-shell: bash | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: install pip dependencies and execute pytest | |
run: | | |
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 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 }} | |
pytest --skip-gpu --psiflow-config=.github/threadpool.yaml | |
shell: micromamba-shell {0} |