Skip to content

Commit

Permalink
path testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marton Havasi committed Dec 11, 2024
1 parent 48222ae commit 9376b99
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/notebooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@ jobs:
- name: Run notebooks
shell: bash -l {0}
env:
PYTHONPATH: $PYTHONPATH:asdasd
run: |
set +e
export PYTHONPATH=$(PWD):$PYTHONPATH
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)"
python -m flow_matching "import flow_matching; print('flow_matching module imported successfully')"
python -c "import flow_matching; print('flow_matching module imported successfully')"
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"
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 "$file"
done

0 comments on commit 9376b99

Please sign in to comment.