Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): add testing with Python 3.13 #12557

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
requirements: edge
database: postgresql
experimental: true
# Python pre-release
- python-version: '3.13'
requirements: latest
database: postgresql
experimental: true
name: py${{ matrix.python-version }}, ${{ matrix.database }}, ${{ matrix.requirements }} deps
env:
CI_DATABASE: ${{ matrix.database }}
Expand Down Expand Up @@ -78,6 +83,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Used versions
run: ./ci/print-versions
- name: Install Python dependencies
Expand Down
4 changes: 4 additions & 0 deletions ci/apt-install
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ apt-get install -y \
gir1.2-rsvg-2.0 \
gir1.2-pango-1.0

# TODO: remove this once Python 3.13 wheels are available, see
# https://github.com/sirfz/tesserocr/pull/357
apt-get install -y libleptonica-dev libtesseract-dev

# Remove MySQL 8.x client, use older MariaDB one to ensure compatibility
if [ "$CI_DATABASE" = "mariadb" ] ; then
apt-get purge 'mysql-client.*'
Expand Down
8 changes: 7 additions & 1 deletion ci/pip-install
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ else
if [ "${1:-latest}" = mypy ] ; then
uv pip install --system -e ".[all,mysql,ci,mypy,test]"
else
uv pip install --system -e ".[all,mysql,ci,test]"
# TODO: lxml can use wheels once xmlsec has one
# see https://github.com/xmlsec/python-xmlsec/issues/327
if python -c 'import sys; sys.exit(0 if sys.version_info >= (3,13) else 1)' ; then
uv pip install --system --no-binary=lxml -e ".[all,mysql,ci,test]"
else
uv pip install --system -e ".[all,mysql,ci,test]"
fi
fi
if [ "${1:-latest}" = edge ] ; then
uv pip install --system --upgrade -e ".[all,mysql,test,ci]"
Expand Down
Loading