Merge branch 'pybind:master' into master

This commit is contained in:
Steve R. Sun 2022-06-22 07:40:38 +08:00 committed by GitHub
commit fafcb825c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View File

@ -584,19 +584,25 @@ jobs:
strategy:
fail-fast: false
matrix:
centos:
- centos7 # GCC 4.8
- stream8
container:
- "centos:7" # GCC 4.8
- "almalinux:8"
- "almalinux:9"
name: "🐍 3 • CentOS ${{ matrix.centos }} • x64"
container: "quay.io/centos/centos:${{ matrix.centos }}"
name: "🐍 3 • ${{ matrix.container }} • x64"
container: "${{ matrix.container }}"
steps:
- uses: actions/checkout@v3
- name: Add Python 3
- name: Add Python 3 (RHEL 7)
if: matrix.container == 'centos:7'
run: yum update -y && yum install -y python3-devel gcc-c++ make git
- name: Add Python 3 (RHEL 8+)
if: matrix.container != 'centos:7'
run: dnf update -y && dnf install -y python3-devel gcc-c++ make git
- name: Update pip
run: python3 -m pip install --upgrade pip

View File

@ -107,7 +107,7 @@ repos:
# PyLint has native support - not always usable, but works for us
- repo: https://github.com/PyCQA/pylint
rev: "v2.14.1"
rev: "v2.14.3"
hooks:
- id: pylint
files: ^pybind11
@ -164,7 +164,7 @@ repos:
# Clang format the codebase automatically
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v14.0.4-1"
rev: "v14.0.5"
hooks:
- id: clang-format
types_or: [c++, c, cuda]