diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index bfd8d77b693..4f63e18a87d 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -25,6 +25,7 @@ jobs: python-version: - "3.11" - "3.13" + - "3.14" fail-fast: true runs-on: ${{ matrix.os }} @@ -64,6 +65,8 @@ jobs: pip install --break-system-packages GDAL=="$(gdal-config --version)" pip install --break-system-packages pytest pytest-timeout \ pytest-github-actions-annotate-failures pytest-xdist pytest-cov + env: + PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1 - name: Create installation directory run: | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index a5896aedabc..fe35899544f 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -107,6 +107,14 @@ jobs: env: STEPS_GET_EXCLUDE_OUTPUTS_EXTRA_EXCLUDE: ${{ steps.get-exclude.outputs.extra-exclude }} + - name: Set up Python + if: ${{ matrix.config == 'ubuntu-24.04' }} + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version: 3.14 + cache: pip + allow-prereleases: true + - name: Get dependencies run: | sudo apt-get update -y @@ -116,6 +124,15 @@ jobs: xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \ sudo apt-get install -y --no-install-recommends --no-install-suggests + - name: Install Python dependencies + if: ${{ matrix.config == 'ubuntu-24.04' }} + run: | + python -m pip install --upgrade pip + pip install -r .github/workflows/python_requirements.txt + pip install -r .github/workflows/optional_requirements.txt + env: + PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1 + - name: Create installation directory run: | mkdir "${HOME}/install"