From 76799ffa6da2db803547782c6de4d520da87653c Mon Sep 17 00:00:00 2001 From: Stefan Seefeld Date: Mon, 31 Mar 2025 22:22:01 -0400 Subject: [PATCH] Test with multiple python versions. --- .github/workflows/test-ubuntu.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-ubuntu.yml b/.github/workflows/test-ubuntu.yml index 74718b68a..5dd97a679 100644 --- a/.github/workflows/test-ubuntu.yml +++ b/.github/workflows/test-ubuntu.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python: [python, python3] + python-version: ['3.8.18', '3.9.21', '3.10.15', '3.11.11', '3.12.9', '3.13.2'] cxx: [g++, clang++] std: [c++98, c++11, c++14, c++17] include: @@ -27,10 +27,13 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - name: build run: | - ${{ matrix.python }} --version + python --version ${{ matrix.cxx }} --version faber -v sed -e "s/\$PYTHON/${{ matrix.python }}/g" .ci/faber > ~/.faber