-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marton Havasi
committed
Dec 11, 2024
1 parent
1461ea7
commit 02d2d89
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
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: Import flow_matching | ||
run: | | ||
python -c "import flow_matching; print('flow_matching module imported successfully')" | ||
- name: Run notebooks | ||
shell: bash -l {0} | ||
working-directory: examples | ||
run: | | ||
set -e | ||
PYTHONPATH=../ | ||
for file in ./*.ipynb; do | ||
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 "$file" | ||
done |