Skip to content

Commit

Permalink
GitHub Actions: Test on Python 3.13 beta
Browse files Browse the repository at this point in the history
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](python/cpython#104773).)

https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals
  • Loading branch information
cclauss authored May 11, 2024
1 parent 590dac5 commit 683a17a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -56,4 +56,3 @@ jobs:
with:
name: coverage_${{ matrix.python-version }}
path: coverage

0 comments on commit 683a17a

Please sign in to comment.