System integration tests for nanoDFT Demo Notebook #4
Workflow file for this run
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: pytest notebooks | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pytest-container: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
container: | |
image: graphcore/pytorch:3.2.0-ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8.10' | |
cache: 'pip' | |
- name: Install requirements | |
run: | | |
pip install -r requirements_ipu.txt | |
pip install . | |
- name: Log installed environment | |
run: | | |
python3 -m pip freeze | |
- name: pytest nbmake | |
env: | |
JAX_IPU_USE_MODEL: 1 | |
JAX_IPU_MODEL_NUM_TILES: 16 | |
run: | | |
pytest --nbmake notebooks/*ipynb |