Skip to content

Commit 08e27aa

Browse files
committed
Add deadsnakes jobs
1 parent fd9fcb4 commit 08e27aa

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,51 @@ jobs:
165165
run: pytest tests/extra_setuptools
166166

167167

168+
deadsnakes:
169+
strategy:
170+
fail-fast: false
171+
matrix:
172+
python:
173+
- version: 2.7
174+
debug: true
175+
- version: 3.9
176+
debug: true
177+
- version: 3.10-dev
178+
debug: false
179+
180+
name: "🐍 ${{ matrix.python.version }} (deadsnakes)${{ matrix.python.debug && ' • Debug' || '' }}"
181+
runs-on: ubuntu-lates
182+
183+
steps:
184+
- uses: actions/checkout@v2
185+
186+
- name: Setup Python ${{ matrix.python.version }}
187+
uses: deadsnakes/[email protected]
188+
with:
189+
python-version: ${{ matrix.python.version }}
190+
debug: ${{ matrix.python.version.debug }}
191+
192+
- name: Prepare env
193+
run: python -m pip install -r tests/requirements.txt --prefer-binary
194+
195+
- name: Configure
196+
run: >
197+
cmake -S . -B build
198+
-DPYBIND11_WERROR=ON
199+
-DDOWNLOAD_CATCH=ON
200+
-DDOWNLOAD_EIGEN=ON
201+
-DCMAKE_CXX_STANDARD=17
202+
203+
- name: Build
204+
run: cmake --build build -j 2
205+
206+
- name: Python tests
207+
run: cmake --build build --target pytest
208+
209+
- name: C++ tests
210+
run: cmake --build build --target cpptest
211+
212+
168213
# Testing on clang using the excellent silkeh clang docker images
169214
clang:
170215
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)