From 15c5a3baff3bfc9fd6756d74109ddf4107e9c936 Mon Sep 17 00:00:00 2001 From: Wen Wei Tseng Date: Mon, 14 Oct 2024 17:05:10 +0800 Subject: [PATCH] CI --- .github/workflows/ci.yml | 9 +++------ .github/workflows/linkcheck.yml | 4 ++-- env.Dockerfile | 2 +- requirements-jb.txt | 1 - 4 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 requirements-jb.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2efde21..836dd7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,13 +91,10 @@ jobs: with: path: ${{ env.NBCACHE }} key: ${{ steps.nb-cache.outputs.cache-primary-key }} - - name: Convert artifact Name - id: art - run: echo "name=$(echo ${{ env.NB }} | sed 's/\//-/g')" >> "$GITHUB_OUTPUT" - name: Upload Notebook uses: actions/upload-artifact@v4 with: - name: notebook-${{ needs.setup.outputs.ver }}-${{ needs.setup.outputs.hash }}-${{ hashFiles(env.NB) }} + name: notebook-${{ needs.setup.outputs.hash }}-${{ hashFiles(env.NB) }} path: ${{ env.NBCACHE }} include-hidden-files: true retention-days: 1 @@ -122,9 +119,9 @@ jobs: with: python-version: '3.x' - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh + run: pip install uv - name: Install Python dependencies - run: uv pip install -r requirements-jb.txt + run: uv pip install jupyter-book - name: Build website run: jupyter-book build docs/ - name: Upload pages artifact diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index f86193d..75346a5 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -47,8 +47,8 @@ jobs: with: python-version: '3.x' - name: Install uv - run: curl -LsSf https://astral.sh/uv/install.sh | sh + run: pip install uv - name: Install Python dependencies - run: uv pip install -r requirements-jb.txt + run: uv pip install jupyter-book - name: Build website run: jupyter-book build ${DIR} --builder linkcheck diff --git a/env.Dockerfile b/env.Dockerfile index 7fe641b..7c9ef85 100644 --- a/env.Dockerfile +++ b/env.Dockerfile @@ -1,4 +1,4 @@ -FROM julia:1.10.5 as julia +FROM julia:1.11.0 as julia FROM ghcr.io/astral-sh/uv:latest as uv FROM python:3.12.5-slim diff --git a/requirements-jb.txt b/requirements-jb.txt deleted file mode 100644 index d4e4641..0000000 --- a/requirements-jb.txt +++ /dev/null @@ -1 +0,0 @@ -jupyter-book==1.0.3