From 7b8860061a952644d712ecfffabbe916b3ff609b Mon Sep 17 00:00:00 2001 From: Marton Havasi Date: Wed, 11 Dec 2024 21:29:40 +0000 Subject: [PATCH] path testing --- .github/workflows/notebooks.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/notebooks.yaml b/.github/workflows/notebooks.yaml index 74ce1b5..a2e7669 100644 --- a/.github/workflows/notebooks.yaml +++ b/.github/workflows/notebooks.yaml @@ -16,20 +16,16 @@ jobs: run: | python -c "import torch; print('Is CUDA available:', torch.cuda.is_available())" - - name: Import flow_matching - shell: bash -l {0} - working-directory: examples - run: | - PYTHONPATH=../ - python -c "import sys; print(sys.path)" - 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=../ + PYTHONPATH=./ + python -c "import sys; print(sys.path)" + cd examples + python -c "import sys; print(sys.path)" + python -c "import flow_matching; print('flow_matching module imported successfully')" + cd .. for file in ./*.ipynb; do jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 "$file" done \ No newline at end of file