Skip to content

Commit 93c5612

Browse files
committed
Add Python 2.x workflow.
1 parent 6a9c341 commit 93c5612

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Test Ubuntu, Python 2.x
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python: [python]
16+
cxx: [g++]
17+
std: [c++11]
18+
include:
19+
# Add the appropriate docker image for each compiler.
20+
# The images from teeks99/boost-python-test already have boost::python
21+
# pre-reqs installed, see:
22+
# https://github.com/teeks99/boost-python-test-docker
23+
- cxx: g++
24+
docker-img: teeks99/boost-python-test:gcc-15_1.89.0
25+
26+
container:
27+
image: ${{ matrix.docker-img }}
28+
29+
steps:
30+
- uses: actions/checkout@v5
31+
32+
- name: setup prerequisites
33+
run: |
34+
# Warning: this is not necessarily the same Python version as the one configured above !
35+
python3 -m pip install -U faber --break-system-packages
36+
- name: build
37+
run: |
38+
${{ matrix.python }} --version
39+
${{ matrix.cxx }} --version
40+
faber -v
41+
sed -e "s/\$PYTHON/${{ matrix.python }}/g" .ci/faber > ~/.faber
42+
faber \
43+
--with-boost-include=${BOOST_PY_DEPS} \
44+
--builddir=build \
45+
cxx.name=${{ matrix.cxx }} \
46+
cxxflags=-std=${{ matrix.std }} \
47+
cppflags=-std=${{ matrix.std }} \
48+
-j`nproc`
49+
- name: test
50+
run: |
51+
faber \
52+
--with-boost-include=${BOOST_PY_DEPS} \
53+
--builddir=build \
54+
cxx.name=${{ matrix.cxx }} \
55+
cxxflags=-std=${{ matrix.std }} \
56+
cppflags=-std=${{ matrix.std }} \
57+
-j`nproc` \
58+
test.report

0 commit comments

Comments
 (0)