mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
tests: cleanup and ci hardening (#2397)
* tests: refactor and cleanup * refactor: more consistent * tests: vendor six * tests: more xfails, nicer system * tests: simplify to info * tests: suggestions from @YannickJadoul and @bstaletic * tests: restore some pypy tests that now pass * tests: rename info to env * tests: strict False/True * tests: drop explicit strict=True again * tests: reduce minimum PyTest to 3.1
This commit is contained in:
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@@ -17,11 +17,11 @@ jobs:
|
||||
runs-on: [ubuntu-latest, windows-latest, macos-latest]
|
||||
arch: [x64]
|
||||
max-cxx-std: [17]
|
||||
dev: [false]
|
||||
python:
|
||||
- 2.7
|
||||
- 3.5
|
||||
- 3.8
|
||||
- 3.9-dev
|
||||
- pypy2
|
||||
- pypy3
|
||||
|
||||
@@ -30,22 +30,38 @@ jobs:
|
||||
python: 3.6
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
- runs-on: macos-latest
|
||||
python: 3.7
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
- runs-on: windows-2016
|
||||
python: 3.7
|
||||
arch: x86
|
||||
max-cxx-std: 14
|
||||
dev: false
|
||||
- runs-on: windows-latest
|
||||
python: 3.6
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
- runs-on: windows-latest
|
||||
python: 3.7
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
|
||||
- runs-on: ubuntu-latest
|
||||
python: 3.9-dev
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: true
|
||||
- runs-on: macos-latest
|
||||
python: 3.9-dev
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: true
|
||||
|
||||
exclude:
|
||||
# Currently 32bit only, and we build 64bit
|
||||
@@ -53,23 +69,29 @@ jobs:
|
||||
python: pypy2
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
- runs-on: windows-latest
|
||||
python: pypy3
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
|
||||
# Currently broken on embed_test
|
||||
- runs-on: windows-latest
|
||||
python: 3.8
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
- runs-on: windows-latest
|
||||
python: 3.9-dev
|
||||
arch: x64
|
||||
max-cxx-std: 17
|
||||
dev: false
|
||||
|
||||
|
||||
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • ${{ matrix.arch }}"
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
continue-on-error: ${{ matrix.dev }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -289,7 +311,8 @@ jobs:
|
||||
- name: Install requirements
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y git make cmake g++ libeigen3-dev python3-dev python3-pip python3-pytest
|
||||
apt-get install -y git make cmake g++ libeigen3-dev python3-dev python3-pip
|
||||
pip3 install "pytest==3.1.*"
|
||||
|
||||
- name: Configure for install
|
||||
run: >
|
||||
|
||||
Reference in New Issue
Block a user