From 06468757502db092b45ea11bf426ac51a4bca078 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 25 Jun 2024 18:45:43 +0200 Subject: [PATCH 1/2] GitHub Actions: Add Python 3.13 pre-release to the testing https://docs.python.org/3.13/whatsnew/3.13.html --- .github/workflows/python-test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index b5c0329..983725d 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -6,17 +6,18 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12.0-alpha - 3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install dependencies run: | python -m pip install --upgrade pip From eb78da7e061a6b922b82f70b889f15aa307d1bcf Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 25 Jun 2024 18:51:10 +0200 Subject: [PATCH 2/2] pip install setuptools on Python >= 3.12 --- .github/workflows/python-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 983725d..48330b9 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -21,6 +21,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install mock ruff + pip install mock setuptools ruff - name: Test run: python setup.py test