Skip to content

Commit 42fbf37

Browse files
committed
update the set of tested Python versions, revive CI
1 parent f185919 commit 42fbf37

File tree

3 files changed

+40
-35
lines changed

3 files changed

+40
-35
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
python-version:
17-
- 3.6
18-
- 3.7
19-
- 3.8
20-
- 3.9
17+
- "3.8"
18+
- "3.9"
19+
- "3.10"
20+
- "3.11"
2121
runs-on:
2222
- ubuntu-latest
2323
- macos-latest
2424
runs-on: ${{ matrix.runs-on }}
2525
name: Test • 🐍 ${{ matrix.python-version }} • ${{matrix.runs-on}}
2626
steps:
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-python@v2
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-python@v4
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131

@@ -35,37 +35,42 @@ jobs:
3535
- name: Test package
3636
run: python -m pytest --forked
3737

38-
checks_windows:
39-
strategy:
40-
fail-fast: false
41-
matrix:
42-
python-version:
43-
- 3.8
44-
- 3.9
45-
runs-on:
46-
- windows-latest
47-
runs-on: ${{ matrix.runs-on }}
48-
name: Test • 🐍 ${{ matrix.python-version }} • ${{matrix.runs-on}}
49-
steps:
50-
- uses: actions/checkout@v2
51-
- uses: actions/setup-python@v2
52-
with:
53-
python-version: ${{ matrix.python-version }}
54-
55-
- name: Install package
56-
run: python -m pip install .[test]
57-
58-
- name: Test package
59-
env:
60-
LIBCLANG_PATH: C:\msys64\mingw64\bin\libclang.dll
61-
run: python -m pytest -n2
38+
# Commented for now -- msys2 Clang (v15) and the clang Python package (v14) are incompatible
39+
#
40+
# checks_windows:
41+
# strategy:
42+
# fail-fast: false
43+
# matrix:
44+
# python-version:
45+
# - "3.8"
46+
# - "3.9"
47+
# runs-on:
48+
# - windows-latest
49+
# runs-on: ${{ matrix.runs-on }}
50+
# name: Test • 🐍 ${{ matrix.python-version }} • ${{matrix.runs-on}}
51+
# steps:
52+
# - uses: actions/checkout@v3
53+
# - uses: actions/setup-python@v4
54+
# with:
55+
# python-version: ${{ matrix.python-version }}
56+
#
57+
# - name: Install package
58+
# run: python -m pip install .[test]
59+
#
60+
# - name: Install clang
61+
# run: C:\msys64\usr\bin\pacman.exe -S clang64/mingw-w64-clang-x86_64-clang --noconfirm
62+
#
63+
# - name: Test package
64+
# env:
65+
# LIBCLANG_PATH: C:\msys64\clang64\bin\libclang.dll
66+
# run: python -m pytest -n2
6267

6368
dist:
6469
runs-on: ubuntu-latest
6570
name: Build distribution
6671
steps:
67-
- uses: actions/checkout@v2
68-
- uses: actions/setup-python@v2
72+
- uses: actions/checkout@v3
73+
- uses: actions/setup-python@v4
6974

7075
- name: Build
7176
run: pipx run build

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ py::class_<MyClass>(m, "MyClass", DOC(MyClass))
7676

7777
## Limitations
7878

79-
This tool supports Linux and macOS for Python versions 3.6 to 3.9. On Windows you at least need Python version 3.8.
80-
Also, it requires Clang/LLVM to be installed.
79+
This tool supports Linux and macOS for Python versions 3.8 to 3.11. Also, it
80+
requires Clang/LLVM to be installed.
8181

8282

8383
## Testing

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ pybind11-mkdoc = "pybind11_mkdoc:main"
2828
test = [
2929
"pytest==7.1.3",
3030
"pybind11",
31-
"pytest-xdist==2.4.0",
31+
"pytest-xdist==2.4.0"
3232
]
3333

0 commit comments

Comments
 (0)