Skip to content

Commit 683a17a

Browse files
authored
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](python/cpython#104773).) https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals
1 parent 590dac5 commit 683a17a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ ubuntu-latest ]
23-
python-version: ["3.11"]
23+
python-version: ["3.12", "3.13"]
2424

2525
steps:
2626

2727
- name: Checkout
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
3131
ref: ${{ github.event.pull_request.head.sha }}
3232

3333
- name: Set up Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v2
34+
uses: actions/setup-python@v5
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737

@@ -56,4 +56,3 @@ jobs:
5656
with:
5757
name: coverage_${{ matrix.python-version }}
5858
path: coverage
59-

0 commit comments

Comments
 (0)