From ff09c44a3b2aa3a14da7a34e2e31b0a2c796a2a1 Mon Sep 17 00:00:00 2001 From: William Patton Date: Mon, 10 Mar 2025 11:47:20 -0700 Subject: [PATCH] reorganize jupytext code --- .github/workflows/docs.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 2bc798b4..c8120ebd 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -12,13 +12,10 @@ jobs: - uses: actions/checkout@master - name: Install uv uses: astral-sh/setup-uv@v5 - - name: install deps + - name: Turn script into notebook run: | - uv sync --extra docs - source .venv/bin/activate - python -m ipykernel install --name daisy_env --user - - name: parse notebooks - run: jupytext --to notebook --execute ./docs/source/notebooks/tutorial.py --output ./docs/source/notebooks/tutorial.ipynb + uv run --extra docs python -m ipykernel install --name daisy_env --user + uv run --extra docs jupytext --to notebook --execute ./docs/source/notebooks/tutorial.py --output ./docs/source/notebooks/tutorial.ipynb - name: remove notebook scripts run: rm ./docs/source/notebooks/*.py - name: Build and Commit