mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
* chore(deps): bump the actions group across 1 directory with 2 updates Bumps the actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance). Updates `actions/checkout` from 1 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v1...v5) Updates `actions/attest-build-provenance` from 2 to 3 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/attest-build-provenance dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * Update .github/workflows/ci.yml --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
# This is a format job. Pre-commit has a first-party GitHub action, so we use
|
|
# that: https://github.com/pre-commit/action
|
|
|
|
name: Format
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
- stable
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
FORCE_COLOR: 3
|
|
# For cmake:
|
|
VERBOSE: 1
|
|
|
|
jobs:
|
|
pre-commit:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Add matchers
|
|
run: echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/pylint.json"
|
|
- uses: pre-commit/action@v3.0.1
|
|
|
|
clang-tidy:
|
|
# When making changes here, please also review the "Clang-Tidy" section
|
|
# in .github/CONTRIBUTING.md and update as needed.
|
|
name: Clang-Tidy
|
|
runs-on: ubuntu-latest
|
|
container: silkeh/clang:20
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Install requirements
|
|
run: apt-get update && apt-get install -y git python3-dev python3-pytest ninja-build
|
|
|
|
- name: Configure
|
|
run: cmake --preset tidy
|
|
- name: Build
|
|
run: cmake --build --preset tidy
|
|
|
|
- name: Embedded
|
|
run: cmake --build --preset tidy -t cpptest
|