Skip to content

Commit

Permalink
ci: drop win2016 (pybind#3854)
Browse files Browse the repository at this point in the history
* ci: drop dead windows CI jobs

* chore: touch up pre-commit

Signed-off-by: Henry Schreiner <[email protected]>

* Update configure.yml

* Update configure.yml
  • Loading branch information
henryiii authored Apr 11, 2022
1 parent 088ad4f commit 9969f3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 59 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -814,55 +814,6 @@ jobs:
- name: Python tests
run: cmake --build build --config Debug -t pytest

win32-msvc2017:
name: "🐍 ${{ matrix.python }} • MSVC 2017 • x64"
runs-on: windows-2016
strategy:
fail-fast: false
matrix:
python:
- 3.6
- 3.7
std:
- 14

include:
- python: 3.7
std: 17
args: >
-DCMAKE_CXX_FLAGS="/permissive- /EHsc /GR"
steps:
- uses: actions/checkout@v2

- name: Setup 🐍 ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Update CMake
uses: jwlawson/[email protected]

- name: Prepare env
run: |
python -m pip install -r tests/requirements.txt
# First build - C++11 mode and inplace
- name: Configure
run: >
cmake -S . -B build
-G "Visual Studio 15 2017" -A x64
-DPYBIND11_WERROR=ON
-DDOWNLOAD_CATCH=ON
-DDOWNLOAD_EIGEN=ON
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
${{ matrix.args }}
- name: Build ${{ matrix.std }}
run: cmake --build build -j 2

- name: Run all checks
run: cmake --build build -t check

windows-2022:
strategy:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
arch: [x64]
cmake: ["3.21"]
cmake: ["3.23"]

include:
- runs-on: ubuntu-latest
Expand All @@ -29,12 +29,8 @@ jobs:
arch: x64
cmake: 3.7

- runs-on: windows-2016
arch: x86
cmake: 3.8

- runs-on: windows-2016
arch: x86
- runs-on: windows-2019
arch: x64 # x86 compilers seem to be missing on 2019 image
cmake: 3.18

name: 🐍 3.7 • CMake ${{ matrix.cmake }} • ${{ matrix.runs-on }}
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ repos:
rev: "v1.2.5"
hooks:
- id: pycln
additional_dependencies: [click<8.1] # Unpin when typer updates
stages: [manual]

# Checking for common mistakes
Expand Down Expand Up @@ -127,7 +126,7 @@ repos:
rev: "v0.942"
hooks:
- id: mypy
args: [--show-error-codes]
args: []
exclude: ^(tests|docs)/
additional_dependencies: [nox, rich]

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ profile = "black"
[tool.mypy]
files = ["pybind11"]
python_version = "3.6"
warn_unused_configs = true
strict = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true

[[tool.mypy.overrides]]
module = ["ghapi.*", "setuptools.*"]
Expand Down

0 comments on commit 9969f3b

Please sign in to comment.