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,46 @@ 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+ ${{ matrix.cxx }} --version
59+ faber -v
60+ sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
61+ faber \
62+ --with-boost-include=${BOOST_PY_DEPS} \
63+ --builddir=build \
64+ cxx.name=${{ matrix.cxx }} \
65+ cxxflags=-std=${{ matrix.std }} \
66+ cppflags=-std=${{ matrix.std }} \
67+ -j`nproc`
4768 - name : test
69+ if : " ${{ matrix.python-version != '2.7' }}"
4870 run : |
4971 .github/run-faber.sh test.report
72+ - name : test
73+ if : " ${{ matrix.python-version == '2.7' }}"
74+ run : |
75+ faber \
76+ --with-boost-include=${BOOST_PY_DEPS} \
77+ --builddir=build \
78+ cxx.name=${{ matrix.cxx }} \
79+ cxxflags=-std=${{ matrix.std }} \
80+ cppflags=-std=${{ matrix.std }} \
81+ -j`nproc` \
82+ test.report
0 commit comments