From bef36b9df5804b7a3a0c4e31392a5d6c1b928f93 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Mon, 8 Jul 2024 16:03:40 +0200 Subject: [PATCH 1/2] CI: Add test job for Python 3.13 Python 3.13 is now in beta, thus is might be useful to start testing what works and what doesn't. This PR adds a Python 3.13 job on Ubuntu. --- .github/workflows/build_lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build_lint.yml b/.github/workflows/build_lint.yml index 2beefecb313..024d5d47d27 100644 --- a/.github/workflows/build_lint.yml +++ b/.github/workflows/build_lint.yml @@ -33,6 +33,8 @@ jobs: os: [windows, ubuntu, macos] python-version: ["3.12"] include: + - os: ubuntu + python-version: "3.13" - os: ubuntu python-version: "3.11" - os: ubuntu @@ -47,6 +49,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' - name: Install uv run: pip install uv From 2a923194cf7572972f3de0a109618fe4c3fe2881 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Wed, 21 Aug 2024 08:39:40 +0200 Subject: [PATCH 2/2] CI: Use regular pip install for Python 3.13 (not uv) --- .github/workflows/build_lint.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_lint.yml b/.github/workflows/build_lint.yml index 024d5d47d27..c309b8da822 100644 --- a/.github/workflows/build_lint.yml +++ b/.github/workflows/build_lint.yml @@ -53,9 +53,12 @@ jobs: cache: 'pip' - name: Install uv run: pip install uv - - name: Install Mesa - # See https://github.com/astral-sh/uv/issues/1945 + - name: Install Mesa with uv pip run: uv pip install --system .[dev] + if: matrix.python-version != '3.13' + - name: Install Mesa with pip + run: pip install .[dev] + if: matrix.python-version == '3.13' - name: Test with pytest run: pytest --durations=10 --cov=mesa tests/ --cov-report=xml - if: matrix.os == 'ubuntu'