Skip to content

Commit efadce6

Browse files
committed
Add python 2 to Ubuntu build matrix.
1 parent 6a9c341 commit efadce6

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/test-ubuntu.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ['3.14']
16+
python-version: ['2.7', '3.14']
1717
cxx: [g++, clang++]
1818
std: [c++11, c++14, c++17]
1919
include:
@@ -34,6 +34,7 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v5
3636
- name: setup python
37+
if: "${{ matrix.python-version != '2.7' }}"
3738
uses: actions/setup-python@v5
3839
with:
3940
python-version: ${{ matrix.python-version }}
@@ -42,8 +43,35 @@ jobs:
4243
echo "CXX=${{ matrix.cxx }}" >> "$GITHUB_ENV"
4344
echo "CXX_STD=${{ matrix.std }}" >> "$GITHUB_ENV"
4445
- name: build
46+
if: "${{ matrix.python-version != '2.7' }}"
4547
run: |
4648
.github/run-faber.sh
49+
- name: build
50+
if: "${{ matrix.python-version == '2.7' }}"
51+
run: |
52+
${{ matrix.python }} --version
53+
${{ matrix.cxx }} --version
54+
faber -v
55+
sed -e "s/\$PYTHON/${{ matrix.python }}/g" .ci/faber > ~/.faber
56+
faber \
57+
--with-boost-include=${BOOST_PY_DEPS} \
58+
--builddir=build \
59+
cxx.name=${{ matrix.cxx }} \
60+
cxxflags=-std=${{ matrix.std }} \
61+
cppflags=-std=${{ matrix.std }} \
62+
-j`nproc`
4763
- name: test
64+
if: "${{ matrix.python-version != '2.7' }}"
4865
run: |
4966
.github/run-faber.sh test.report
67+
- name: test
68+
if: "${{ matrix.python-version == '2.7' }}"
69+
run: |
70+
faber \
71+
--with-boost-include=${BOOST_PY_DEPS} \
72+
--builddir=build \
73+
cxx.name=${{ matrix.cxx }} \
74+
cxxflags=-std=${{ matrix.std }} \
75+
cppflags=-std=${{ matrix.std }} \
76+
-j`nproc` \
77+
test.report

0 commit comments

Comments
 (0)