diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index a05a41b05a5..20f6fdff1ae 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -25,6 +25,7 @@ jobs: - '3.9' - '3.12' - '3.13' + - '3.14' fail-fast: true runs-on: ${{ matrix.os }} @@ -58,6 +59,8 @@ jobs: pip install -r .github/workflows/python_requirements.txt pip install -r .github/workflows/optional_requirements.txt pip install 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 fd00a713f4c..e82e0f40f2f 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -101,6 +101,14 @@ jobs: }}:g' .gunittest.cfg > .gunittest.extra.cfg cat .gunittest.extra.cfg + - name: Set up Python + if: ${{ matrix.config == 'ubuntu-22.04' }} + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 + with: + python-version: 3.14 + cache: pip + allow-prereleases: true + - name: Get dependencies run: | sudo apt-get update -y @@ -108,6 +116,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-22.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