path testing #7
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: Notebooks | |
on: push | |
jobs: | |
run-notebooks: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: mamba-org/[email protected] | |
with: | |
environment-file: environment.yml | |
cache-environment: true | |
- name: Check GPU availability | |
shell: bash -l {0} | |
run: | | |
python -c "import torch; print('Is CUDA available:', torch.cuda.is_available())" | |
- name: Run notebooks | |
shell: bash -l {0} | |
env: | |
PYTHONPATH: $PYTHONPATH:asdasd | |
run: | | |
set +e | |
cd examples/ | |
PYTHONPATH=$PYTHONPATH python -m flow_matching "import flow_matching; print('flow_matching module imported successfully')" | |
PYTHONPATH=$PYTHONPATH python -c "import flow_matching; print('flow_matching module imported successfully')" | |
PYTHONPATH=$PYTHONPATH python -c "import sys; print(sys.path)" | |
cd .. | |
for file in examples/*.ipynb; do | |
PYTHONPATH=$PYTHONPATH jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 "$file" | |
done |