Skip to content

Commit 00ce4bd

Browse files
committed
Refine test matrix generation.
1 parent 22347f2 commit 00ce4bd

File tree

4 files changed

+20
-159
lines changed

4 files changed

+20
-159
lines changed

.github/workflows/deploy-documentation.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/test-osx.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/test-ubuntu.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python: [python, python3]
12+
python-version: [2.7, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.14t]
1313
cxx: [g++, clang++]
14-
std: [c++98, c++11, c++14, c++17]
14+
#cxx: [g++]
15+
#std: [c++98, c++11, c++14, c++17]
16+
#std: [c++17]
1517
include:
1618
# Add the appropriate docker image for each compiler.
1719
# The images from teeks99/boost-python-test already have boost::python
@@ -21,33 +23,28 @@ jobs:
2123
docker-img: teeks99/boost-python-test:clang-12_1.76.0
2224
- cxx: g++
2325
docker-img: teeks99/boost-python-test:gcc-10_1.76.0
26+
# by default, all builds use -std=c++17
27+
- std: c++17
28+
# expand test coverage for python 2.7
29+
- python-version: 2.7
30+
std: c++98
31+
- python-version: 2.7
32+
std: c++11
33+
- python-version: 2.7
34+
std: c++14
2435

2536
container:
2637
image: ${{ matrix.docker-img }}
2738

2839
steps:
2940
- uses: actions/checkout@v5
30-
41+
- name: setup python
42+
if: "${{ matrix.python-version != '2.7' }}"
43+
uses: actions/setup-python@v6
44+
with:
45+
python-version: ${{ matrix.python-version }}
3146
- name: build
3247
run: |
33-
${{ matrix.python }} --version
48+
echo ${{ matrix.python-version }} ${{ matrix.cxx }} ${{ matrix.std }}
49+
python --version
3450
${{ matrix.cxx }} --version
35-
faber -v
36-
sed -e "s/\$PYTHON/${{ matrix.python }}/g" .ci/faber > ~/.faber
37-
faber \
38-
--with-boost-include=${BOOST_PY_DEPS} \
39-
--builddir=build \
40-
cxx.name=${{ matrix.cxx }} \
41-
cxxflags=-std=${{ matrix.std }} \
42-
cppflags=-std=${{ matrix.std }} \
43-
-j`nproc`
44-
- name: test
45-
run: |
46-
faber \
47-
--with-boost-include=${BOOST_PY_DEPS} \
48-
--builddir=build \
49-
cxx.name=${{ matrix.cxx }} \
50-
cxxflags=-std=${{ matrix.std }} \
51-
cppflags=-std=${{ matrix.std }} \
52-
-j`nproc` \
53-
test.report

.github/workflows/test-windows.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)