From 683a17ab719337f95b8d9b3d2a5bc355706922df Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 11 May 2024 07:50:14 +0200 Subject: [PATCH 1/3] GitHub Actions: Test on Python 3.13 beta The Python 3.13 release notes mention `filetype.py` as one of the alternatives for `imghdr` which was removed from the Standard Library so let's ensure that its test pass on Python 3.13 beta. https://www.python.org/downloads/release/python-3130b1/ Raises `ModuleNotFoundError: No module named 'imghdr'` because Python 3.13 removes it from the Standard Library. * https://docs.python.org/3/library/imghdr.html > imghdr: use the projects [filetype](https://pypi.org/project/filetype/), [puremagic](https://pypi.org/project/puremagic/), or [python-magic](https://pypi.org/project/python-magic/) instead. (Contributed by Victor Stinner in [gh-104773](https://github.com/python/cpython/issues/104773).) https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 535d2fb..4d9fe9c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,18 +20,18 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - python-version: ["3.11"] + python-version: ["3.12", "3.13"] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -56,4 +56,3 @@ jobs: with: name: coverage_${{ matrix.python-version }} path: coverage - From 815214a2bcd4e6568eca89aff32b25fa9f28cf02 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 11 May 2024 07:54:03 +0200 Subject: [PATCH 2/3] allow-prereleases: true --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4d9fe9c..24b6cee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,6 +34,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Upgrade PIP run: python -m pip install --upgrade pip From adf7b67b0d13d92ffe20c17afb37aeb9a4f92bec Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 12 May 2024 16:12:29 +0200 Subject: [PATCH 3/3] Test Py3.13 on macOS, Ubuntu, and Windows --- .github/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24b6cee..80b075b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,11 @@ jobs: matrix: os: [ ubuntu-latest ] python-version: ["3.12", "3.13"] + include: + - os: macos-latest + python-version: '3.13' + - os: windows-latest + python-version: '3.13' steps: