Skip to content

Commit 597df1d

Browse files
committed
Add test-ubuntu-py-ver.yml workflow.
1 parent b7b0137 commit 597df1d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Test on Ubuntu with various Python versions
2+
name: Test Ubuntu, Python version compatiblity
3+
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
15+
cxx: [g++]
16+
std: [c++11]
17+
include:
18+
# Add the appropriate docker image for each compiler.
19+
# The images from teeks99/boost-python-test already have boost::python
20+
# pre-reqs installed, see:
21+
# https://github.com/teeks99/boost-python-test-docker
22+
#- cxx: clang++
23+
# docker-img: teeks99/boost-python-test:clang-21_1.89.0
24+
- cxx: g++
25+
docker-img: teeks99/boost-python-test:gcc-15_1.89.0
26+
27+
container:
28+
image: ${{ matrix.docker-img }}
29+
30+
steps:
31+
- uses: actions/checkout@v5
32+
- name: setup python
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- name: setup prerequisites
37+
run: |
38+
echo "CXX=${{ matrix.cxx }}" >> "$GITHUB_ENV"
39+
echo "CXX_STD=${{ matrix.std }}" >> "$GITHUB_ENV"
40+
- name: build
41+
run: |
42+
.github/run-faber.sh
43+
- name: test
44+
run: |
45+
.github/run-faber.sh test.report

0 commit comments

Comments
 (0)