Skip to content
Merged
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
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
Expand All @@ -191,7 +191,7 @@ jobs:
allow-prereleases: true

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
timeout-minutes: 40
container: quay.io/pypa/musllinux_1_2_x86_64:latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -283,7 +283,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python ${{ matrix.python-version }} (deadsnakes)
uses: deadsnakes/action@v3.2.0
Expand Down Expand Up @@ -371,7 +371,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Add wget and python3
run: apt-get update && apt-get install -y python3-dev python3-numpy python3-pytest libeigen3-dev
Expand Down Expand Up @@ -409,7 +409,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
- name: Install 🐍 3
Expand All @@ -433,7 +433,7 @@ jobs:
# container: centos:8
#
# steps:
# - uses: actions/checkout@v5
# - uses: actions/checkout@v6
#
# - name: Add Python 3 and a few requirements
# run: yum update -y && yum install -y git python3-devel python3-numpy python3-pytest make environment-modules
Expand Down Expand Up @@ -480,7 +480,7 @@ jobs:
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
DEBIAN_FRONTEND: 'noninteractive'
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Add NVHPC Repo
run: |
Expand Down Expand Up @@ -542,7 +542,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Add Python 3
run: apt-get update; apt-get install -y python3-dev python3-numpy python3-pytest python3-pip libeigen3-dev
Expand Down Expand Up @@ -606,7 +606,7 @@ jobs:
name: "🐍 3 • ICC latest • x64"

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Add apt repo
run: |
Expand Down Expand Up @@ -720,7 +720,7 @@ jobs:

steps:
- name: Latest actions/checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Add Python 3.8
if: matrix.container == 'almalinux:8'
Expand Down Expand Up @@ -823,7 +823,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
with:
Expand Down Expand Up @@ -870,7 +870,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v6
Expand Down Expand Up @@ -923,7 +923,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v6
Expand Down Expand Up @@ -972,7 +972,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v6
Expand Down Expand Up @@ -1059,7 +1059,7 @@ jobs:
mingw-w64-${{matrix.env}}-catch
${{ matrix.extra_install }}

- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Configure C++11
# LTO leads to many undefined reference like
Expand Down Expand Up @@ -1150,7 +1150,7 @@ jobs:
run: env

- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Set up Clang
uses: egor-tensin/setup-clang@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ jobs:
runs-on: ${{ matrix.runs-on }}

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python 3.11
uses: actions/setup-python@v6
with:
python-version: 3.11

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7

- name: Prepare env
run: uv pip install --python=python --system -r tests/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Check for docs changes
id: docs_changes
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.x"
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
container: silkeh/clang:20
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Install requirements
run: apt-get update && apt-get install -y git python3-dev python3-pytest ninja-build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
if: github.repository_owner == 'pybind'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7

- name: Build SDist and wheels
run: |
uv tool install nox
nox -s build
nox -s build_global

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: Packages
path: dist/*
Expand All @@ -44,7 +44,7 @@ jobs:
needs: [build_wheel]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v5
- uses: actions/download-artifact@v6
with:
name: Packages
path: dist
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup 🐍 3.8
uses: actions/setup-python@v6
with:
python-version: 3.8

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7

- name: Prepare env
run: uv pip install --system -r tests/requirements.txt
Expand All @@ -47,15 +47,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup 🐍 3.8
uses: actions/setup-python@v6
with:
python-version: 3.8

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7

- name: Prepare env
run: uv pip install --system -r tests/requirements.txt twine nox
Expand All @@ -72,13 +72,13 @@ jobs:
run: twine check dist/*

- name: Save standard package
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: standard
path: dist/pybind11-*

- name: Save global package
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: global
path: dist/*global-*
Expand All @@ -100,7 +100,7 @@ jobs:

steps:
# Downloads all to directories matching the artifact names
- uses: actions/download-artifact@v5
- uses: actions/download-artifact@v6

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
timeout-minutes: 90

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python ${{ inputs.python-version }}
uses: actions/setup-python@v6
Expand All @@ -51,7 +51,7 @@ jobs:
run: brew install boost

- name: Install uv
uses: astral-sh/setup-uv@v6
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/tests-cibw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
name: Pyodide wheel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 0

- uses: pypa/cibuildwheel@v3.1
- uses: pypa/cibuildwheel@v3.3
env:
PYODIDE_BUILD_EXPORTS: whole_archive
with:
Expand All @@ -37,15 +37,15 @@ jobs:
matrix:
runs-on: [macos-14, macos-13]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 0

# We have to uninstall first because GH is now using a local tap to build cmake<4, iOS needs cmake>=4
- run: brew uninstall cmake && brew install cmake

- uses: pypa/cibuildwheel@v3.1
- uses: pypa/cibuildwheel@v3.3
env:
CIBW_PLATFORM: ios
CIBW_SKIP: cp314-* # https://github.com/pypa/cibuildwheel/issues/2494
Expand All @@ -60,7 +60,7 @@ jobs:
matrix:
runs-on: [macos-latest, macos-13, ubuntu-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
submodules: true
fetch-depth: 0
Expand All @@ -70,6 +70,11 @@ jobs:
if: contains(matrix.runs-on, 'macos')
run: echo "CIBW_TEST_COMMAND=" >> "$GITHUB_ENV"

# NOTE: Android cibuildwheel tests are currently disabled.
# See https://github.com/pybind/pybind11/issues/5913.
- name: "NOTE: Android tests are disabled"
run: echo '::warning::Android cibuildwheel tests are disabled (CIBW_TEST_COMMAND is empty). See issue 5913.'

# https://github.blog/changelog/2024-04-02-github-actions-hardware-accelerated-android-virtualization-now-available/
- name: Enable KVM for Android emulator
if: contains(matrix.runs-on, 'ubuntu')
Expand All @@ -80,8 +85,9 @@ jobs:

- run: pipx install patchelf

- uses: pypa/cibuildwheel@v3.1
- uses: pypa/cibuildwheel@v3.3
env:
CIBW_PLATFORM: android
CIBW_TEST_COMMAND: "" # Temporarily disable Android tests; emulator setup is broken (see #5913).
with:
package-dir: tests
2 changes: 1 addition & 1 deletion .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
if: "contains(github.event.pull_request.labels.*.name, 'python dev')"

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Setup Python 3.13
uses: actions/setup-python@v6
Expand Down
Loading