From b5d6904084c99751ab4157c3db013745b55f94eb Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Fri, 11 Sep 2026 23:02:33 +0000 Subject: [PATCH] Fix the documentation publishing workflow Trigger was master branch, changed to main. Build Python updated to 3.13. Older tex requirements no longer needed. Assisted-by: claude-code:claude-opus-5 --- .github/workflows/publish_docs_to_pages.yml | 27 +++++++++++---------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish_docs_to_pages.yml b/.github/workflows/publish_docs_to_pages.yml index d8fe8e0..129f485 100644 --- a/.github/workflows/publish_docs_to_pages.yml +++ b/.github/workflows/publish_docs_to_pages.yml @@ -3,27 +3,28 @@ name: Publish docs to gh-pages on: push: branches: - - master + - main + +permissions: + contents: read jobs: build: + if: github.repository_owner == 'numpy' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-python@v1 + - uses: actions/checkout@v5 + with: + # The deploy step below checks out gh-pages. + fetch-depth: 0 + persist-credentials: false + - uses: actions/setup-python@v7 with: - python-version: '3.7' - - name: Install dependencies + python-version: '3.13' + - name: Install numpy-financial and the documentation dependencies run: | - export DEBIAN_FRONTEND=noninteractive - sudo apt-get -q -y install dvipng texlive-latex-extra python -m pip install --upgrade pip - pip install -r requirements.txt - pip install sphinx - pip install numpydoc - - name: Install numpy-financial - run: | - pip install . + pip install .[doc] - name: Build documentation with Sphinx run: | cd doc