diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92822eadeb..32f9a89466 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,10 @@ on: - cron: "17 6 * * 3,5" workflow_dispatch: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "README.rst" types: - opened - synchronize @@ -1056,44 +1060,6 @@ jobs: working-directory: /build-tests - # This verifies that the documentation is not horribly broken, and does a - # basic validation check on the SDist. - doxygen: - if: github.event.pull_request.draft == false - name: "Documentation build test" - runs-on: ubuntu-latest - timeout-minutes: 90 - - steps: - - uses: actions/checkout@v7 - - - uses: actions/setup-python@v7 - with: - python-version: "3.x" - - - name: Install Doxygen - run: sudo apt-get install -y doxygen librsvg2-bin # Changed to rsvg-convert in 20.04 - - - name: Build docs - run: pipx run nox -s docs - - - name: Make SDist - run: pipx run nox -s build -- --sdist - - - run: git status --ignored - - - name: Check local include dir - run: > - ls pybind11; - python3 -c "import pybind11, pathlib; assert (a := pybind11.get_include()) == (b := str(pathlib.Path('include').resolve())), f'{a} != {b}'" - - - name: Compare Dists (headers only) - working-directory: include - run: | - python3 -m pip install --user -U ../dist/*.tar.gz - installed=$(python3 -c "import pybind11; print(pybind11.get_include() + '/pybind11')") - diff -rq $installed ./pybind11 - win32: if: github.event.pull_request.draft == false strategy: diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml index 8030724457..9ea919d68f 100644 --- a/.github/workflows/configure.yml +++ b/.github/workflows/configure.yml @@ -3,12 +3,20 @@ name: Config on: workflow_dispatch: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "README.rst" types: - opened - synchronize - reopened - ready_for_review push: + paths-ignore: + - "docs/**" + - "**.md" + - "README.rst" branches: - master - stable diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000000..f57948ca7d --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,59 @@ +name: Docs + +on: + workflow_dispatch: + pull_request: + types: + - opened + - synchronize + - reopened + - ready_for_review + +permissions: + contents: read + +concurrency: + group: docs-${{ github.ref }} + cancel-in-progress: true + +env: + FORCE_COLOR: 3 + +jobs: + # This verifies that the documentation is not horribly broken, and does a + # basic validation check on the SDist. + doxygen: + if: github.event.pull_request.draft == false + name: "Documentation build test" + runs-on: ubuntu-latest + timeout-minutes: 90 + + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-python@v7 + with: + python-version: "3.x" + + - name: Install Doxygen + run: sudo apt-get install -y doxygen librsvg2-bin # Changed to rsvg-convert in 20.04 + + - name: Build docs + run: pipx run nox -s docs + + - name: Make SDist + run: pipx run nox -s build -- --sdist + + - run: git status --ignored + + - name: Check local include dir + run: > + ls pybind11; + python3 -c "import pybind11, pathlib; assert (a := pybind11.get_include()) == (b := str(pathlib.Path('include').resolve())), f'{a} != {b}'" + + - name: Compare Dists (headers only) + working-directory: include + run: | + python3 -m pip install --user -U ../dist/*.tar.gz + installed=$(python3 -c "import pybind11; print(pybind11.get_include() + '/pybind11')") + diff -rq $installed ./pybind11 diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index d721192fd5..3fafe011d0 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -3,7 +3,15 @@ name: Pip on: workflow_dispatch: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "README.rst" push: + paths-ignore: + - "docs/**" + - "**.md" + - "README.rst" branches: - master - stable diff --git a/.github/workflows/tests-cibw.yml b/.github/workflows/tests-cibw.yml index 783d93eabe..f0d28959a4 100644 --- a/.github/workflows/tests-cibw.yml +++ b/.github/workflows/tests-cibw.yml @@ -6,6 +6,10 @@ on: - cron: "47 6 * * 3,5" workflow_dispatch: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "README.rst" branches: - master - stable diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index 8a5a5a18c8..819e87fe13 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -3,6 +3,10 @@ name: Upstream on: workflow_dispatch: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "README.rst" permissions: contents: read