Skip to content

Commit

Permalink
Print notebook content for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Feb 21, 2025
1 parent a4468f4 commit 0ddc5eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/convert-notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@

print(f"Script saved to {script_path}")

# Output script path to github actions output
# Output script and notebook path to github actions output
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
f.write(f"script_path={run_script_path}\n")
f.write(f"script_path={run_script_path}\n")
f.write(f"notebook_path={temp_nb_path}\n")

6 changes: 3 additions & 3 deletions .github/workflows/test-notebooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
matrix:
notebook:
- learn/search/semantic-search/semantic-search.ipynb
- docs/gen-qa-openai.ipynb
# - docs/gen-qa-openai.ipynb
- docs/langchain-retrieval-agent.ipynb
- docs/langchain-retrieval-augmentation.ipynb
- docs/pinecone-reranker.ipynb
Expand All @@ -31,11 +31,11 @@ jobs:
run: |
python .github/scripts/convert-notebook.py ${{ matrix.notebook }}
- name: View run script
- name: View setup script and notebook content
shell: bash
run: |
cat ${{ steps.convert.outputs.script_path }}
cat ${{ steps.convert.outputs.notebook_path }}
- name: Run the converted notebook
shell: bash
run: |
Expand Down

0 comments on commit 0ddc5eb

Please sign in to comment.