1818 std : [c++11, c++14, c++17]
1919 include :
2020 # Also test with free-threaded build of Python
21+ - python-version : ' 2.7'
22+ cxx : g++
23+ std : c++11
2124 - python-version : ' 3.14t'
2225 cxx : clang++
2326 std : c++17
@@ -34,16 +37,48 @@ jobs:
3437 steps :
3538 - uses : actions/checkout@v5
3639 - name : setup python
40+ if : " ${{ matrix.python-version != '2.7' }}"
3741 uses : actions/setup-python@v5
3842 with :
3943 python-version : ${{ matrix.python-version }}
4044 - name : setup prerequisites
4145 run : |
46+ # Warning: this is not necessarily the same Python version as the one configured above !
47+ python3 -m pip install -U faber --break-system-packages
4248 echo "CXX=${{ matrix.cxx }}" >> "$GITHUB_ENV"
4349 echo "CXX_STD=${{ matrix.std }}" >> "$GITHUB_ENV"
4450 - name : build
51+ if : " ${{ matrix.python-version != '2.7' }}"
4552 run : |
4653 .github/run-faber.sh
54+ - name : build
55+ if : " ${{ matrix.python-version == '2.7' }}"
56+ run : |
57+ python --version
58+ echo ${BOOST_PY_DEPS}
59+ ${{ matrix.cxx }} --version
60+ faber -v
61+ sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
62+ faber \
63+ --with-boost-include=${BOOST_PY_DEPS} \
64+ --builddir=build \
65+ cxx.name=${{ matrix.cxx }} \
66+ cxxflags=-std=${{ matrix.std }} \
67+ cppflags=-std=${{ matrix.std }} \
68+ -j`nproc`
4769 - name : test
70+ if : " ${{ matrix.python-version != '2.7' }}"
4871 run : |
4972 .github/run-faber.sh test.report
73+ - name : test
74+ if : " ${{ matrix.python-version == '2.7' }}"
75+ run : |
76+ faber \
77+ --debug \
78+ --with-boost-include=${BOOST_PY_DEPS} \
79+ --builddir=build \
80+ cxx.name=${{ matrix.cxx }} \
81+ cxxflags=-std=${{ matrix.std }} \
82+ cppflags=-std=${{ matrix.std }} \
83+ -j`nproc` \
84+ test.report
0 commit comments