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: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
centos: container:
- centos7 # GCC 4.8 - "centos:7" # GCC 4.8
- stream8 - "almalinux:8"
- "almalinux:9"
name: "🐍 3 • CentOS ${{ matrix.centos }} • x64" name: "🐍 3 • ${{ matrix.container }} • x64"
container: "quay.io/centos/centos:${{ matrix.centos }}" container: "${{ matrix.container }}"
steps: steps:
- uses: actions/checkout@v3 - 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 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 - name: Update pip
run: python3 -m pip install --upgrade 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 # PyLint has native support - not always usable, but works for us
- repo: https://github.com/PyCQA/pylint - repo: https://github.com/PyCQA/pylint
rev: "v2.14.1" rev: "v2.14.3"
hooks: hooks:
- id: pylint - id: pylint
files: ^pybind11 files: ^pybind11
@ -164,7 +164,7 @@ repos:
# Clang format the codebase automatically # Clang format the codebase automatically
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v14.0.4-1" rev: "v14.0.5"
hooks: hooks:
- id: clang-format - id: clang-format
types_or: [c++, c, cuda] types_or: [c++, c, cuda]