Skip to content

Commit

Permalink
DEV: Test against Python 3.13 (#2776)
Browse files Browse the repository at this point in the history
* DEV: Test against Python 3.13

* fix typo

* add missing setup-python

* fix another typo

* update Pillow version

* attempt to update coverage package

* update number of expected coverage files
  • Loading branch information
stefan6419846 authored Jul 28, 2024
1 parent d40fcc1 commit 4bd54bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev"]
use-crypto-lib: ["cryptography"]
include:
- python-version: "3.7"
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
cache-dependency-path: '**/requirements/ci.txt'
- name: Setup Python (3.11+)
uses: actions/setup-python@v5
if: matrix.python-version == '3.11' || matrix.python-version == '3.12'
if: matrix.python-version == '3.11' || matrix.python-version == '3.12' || matrix.python-version == '3.13-dev'
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
Expand All @@ -106,7 +106,7 @@ jobs:
- name: Install requirements (Python 3.11+)
run: |
pip install -r requirements/ci-3.11.txt
if: matrix.python-version == '3.11' || matrix.python-version == '3.12'
if: matrix.python-version == '3.11' || matrix.python-version == '3.12' || matrix.python-version == '3.13-dev'
- name: Remove pycryptodome and cryptography
run: |
pip uninstall pycryptodome cryptography -y
Expand Down Expand Up @@ -215,8 +215,8 @@ jobs:
- name: Check Number of Downloaded Files
run: |
downloaded_files_count=$(find \.coverage* -type f | wc -l)
if [ $downloaded_files_count -eq 8 ]; then
echo "The expected number of files (8) were downloaded."
if [ $downloaded_files_count -eq 9 ]; then
echo "The expected number of files (9) were downloaded."
else
echo "ERROR: Expected 8 files, but found $downloaded_files_count files."
exit 1
Expand Down
4 changes: 2 additions & 2 deletions requirements/ci-3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
attrs==23.1.0
# via flake8-bugbear
coverage[toml]==7.3.0
coverage[toml]==7.6.0
# via
# -r requirements/ci.in
# pytest-cov
Expand Down Expand Up @@ -35,7 +35,7 @@ mypy-extensions==1.0.0
# via mypy
packaging==23.1
# via pytest
pillow==10.0.1
pillow==10.4.0
# via
# -r requirements/ci.in
# fpdf2
Expand Down

0 comments on commit 4bd54bd

Please sign in to comment.