diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-ubuntu.yml index abb0f2d5..b981dc46 100644 --- a/.github/workflows/test-ubuntu.yml +++ b/.github/workflows/test-ubuntu.yml @@ -18,6 +18,9 @@ jobs: std: [c++11, c++14, c++17] include: # Also test with free-threaded build of Python + - python-version: '2.7' + cxx: g++ + std: c++11 - python-version: '3.14t' cxx: clang++ std: c++17 @@ -34,16 +37,48 @@ jobs: steps: - uses: actions/checkout@v5 - name: setup python + if: "${{ matrix.python-version != '2.7' }}" uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: setup prerequisites run: | + # Warning: this is not necessarily the same Python version as the one configured above ! + python3 -m pip install -U faber --break-system-packages echo "CXX=${{ matrix.cxx }}" >> "$GITHUB_ENV" echo "CXX_STD=${{ matrix.std }}" >> "$GITHUB_ENV" - name: build + if: "${{ matrix.python-version != '2.7' }}" run: | .github/run-faber.sh + - name: build + if: "${{ matrix.python-version == '2.7' }}" + run: | + python --version + echo ${BOOST_PY_DEPS} + ${{ matrix.cxx }} --version + faber -v + sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber + faber \ + --with-boost-include=${BOOST_PY_DEPS} \ + --builddir=build \ + cxx.name=${{ matrix.cxx }} \ + cxxflags=-std=${{ matrix.std }} \ + cppflags=-std=${{ matrix.std }} \ + -j`nproc` - name: test + if: "${{ matrix.python-version != '2.7' }}" run: | .github/run-faber.sh test.report + - name: test + if: "${{ matrix.python-version == '2.7' }}" + run: | + faber \ + --debug \ + --with-boost-include=${BOOST_PY_DEPS} \ + --builddir=build \ + cxx.name=${{ matrix.cxx }} \ + cxxflags=-std=${{ matrix.std }} \ + cppflags=-std=${{ matrix.std }} \ + -j`nproc` \ + test.report