Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 4 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- cron: "17 6 * * 3,5"
workflow_dispatch:
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "README.rst"
types:
- opened
- synchronize
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests-cibw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- cron: "47 6 * * 3,5"
workflow_dispatch:
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "README.rst"
branches:
- master
- stable
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Upstream
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "docs/**"
- "**.md"
- "README.rst"

permissions:
contents: read
Expand Down
Loading