From c23227813d429b3f2e396ffdc3de023531fb2283 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Tue, 18 Feb 2025 19:59:46 +0100 Subject: [PATCH 1/4] Try building in CI using uv --- .github/workflows/sphinx.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 999442ed..cc9d6cf4 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -12,6 +12,7 @@ on: [push, pull_request] env: DEFAULT_BRANCH: "sphinx" + SPHINXBUILD: "uv run sphinx-build" # If these SPHINXOPTS are enabled, then be strict about the # builds and fail on any warnings. #SPHINXOPTS: "-W --keep-going -T" @@ -35,20 +36,19 @@ jobs: fetch-depth: 0 lfs: true - # https://github.com/marketplace/actions/setup-python + # https://github.com/astral-sh/setup-uv # ^-- This gives info on matrix testing. - name: Install Python - uses: actions/setup-python@v4 + uses: astral-sh/setup-uv@v5 with: python-version: '3.11' - cache: 'pip' + enable-cache: true # https://docs.github.com/en/actions/guides/building-and-testing-python#installing-dependencies # ^-- This gives info on installing dependencies with pip - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + uv pip install -r requirements.txt # Debug - name: Debugging information @@ -70,8 +70,8 @@ jobs: git branch -a git remote -v python -V - pip list --not-required - pip list + uv pip list + uv pip check # Build @@ -100,7 +100,7 @@ jobs: - name: Generate PDF if: ${{ env.GENERATE_PDF == 'true' }} run: | - pip install https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip + uv pip install https://github.com/rkdarst/sphinx_pyppeteer_builder/archive/refs/heads/main.zip make pyppeteer mv _build/pyppeteer/*.pdf _build/dirhtml/${PDF_FILENAME} From c8837b864f94cb3714eb01ed41b216d18fd34923 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Tue, 18 Feb 2025 20:09:05 +0100 Subject: [PATCH 2/4] Disable pr-receive CI workflow --- .github/workflows/pr-receive.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-receive.yaml b/.github/workflows/pr-receive.yaml index 7fbff6cd..5f2fd43f 100644 --- a/.github/workflows/pr-receive.yaml +++ b/.github/workflows/pr-receive.yaml @@ -1,9 +1,9 @@ name: "Receive Pull Request" -on: - pull_request: - types: - [opened, synchronize, reopened] +# on: +# pull_request: +# types: +# [opened, synchronize, reopened] concurrency: group: ${{ github.ref }} From 10d008e7bbef0d29e5845366a5bacd8c296e6c17 Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Tue, 18 Feb 2025 20:14:53 +0100 Subject: [PATCH 3/4] Enable parallel sphinx-build --- .github/workflows/sphinx.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index cc9d6cf4..15e5471a 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -13,6 +13,8 @@ on: [push, pull_request] env: DEFAULT_BRANCH: "sphinx" SPHINXBUILD: "uv run sphinx-build" + # Distribute the build using multiprocessing + SPHINXOPTS: "--jobs auto" # If these SPHINXOPTS are enabled, then be strict about the # builds and fail on any warnings. #SPHINXOPTS: "-W --keep-going -T" From e1a4a4ba9d1ab39b36d7012dd309a483c4feebfd Mon Sep 17 00:00:00 2001 From: "Ashwin V. Mohanan" Date: Tue, 18 Feb 2025 20:22:50 +0100 Subject: [PATCH 4/4] Revert "Enable parallel sphinx-build" This reverts commit 10d008e7bbef0d29e5845366a5bacd8c296e6c17. --- .github/workflows/sphinx.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 15e5471a..cc9d6cf4 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -13,8 +13,6 @@ on: [push, pull_request] env: DEFAULT_BRANCH: "sphinx" SPHINXBUILD: "uv run sphinx-build" - # Distribute the build using multiprocessing - SPHINXOPTS: "--jobs auto" # If these SPHINXOPTS are enabled, then be strict about the # builds and fail on any warnings. #SPHINXOPTS: "-W --keep-going -T"