Skip to content

Commit 3e9cceb

Browse files
committed
ci: Add support to test Python 3.15.0
Using GitHub Actions. Signed-off-by: Paulo Vital <paulo.vital@ibm.com>
1 parent bd5bbe8 commit 3e9cceb

2 files changed

Lines changed: 53 additions & 12 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test Python future version
2+
3+
on:
4+
workflow_dispatch: # Manual trigger.
5+
schedule:
6+
- cron: '3 1 * * 1-5' # Every Monday to Friday at 03:01 AM.
7+
push:
8+
branches:
9+
- main
10+
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v5
18+
- name: Set up Python 3.15.0
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.15.0-alpha.7
22+
- name: Display Python version
23+
run: python -c "import sys; print(sys.version)"
24+
- name: Install Python dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
- name: Install Python test dependencies
29+
run: |
30+
pip install -r tests/requirements-pre315.txt
31+
- name: Test with pytest
32+
run: |
33+
pytest -v --doctest-modules --junitxml=junit/test-results.xml tests
34+
35+
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
-r requirements-minimal.txt
1+
# requirements-minimal.txt
2+
-r requirements-minimal.txt
3+
pytest-timeout>=2.4.0
4+
# setuptools upperbound pinning is temporary and will remain in place until
5+
# packages resolve the failures caused by the pkg_resources deprecation.
6+
setuptools<=81.0.0
7+
# requirements.txt
28
aioamqp>=0.15.0
39
aiofiles>=0.5.0
4-
aiohttp>=3.8.3
10+
aiohttp>=3.12.14
511
aio-pika>=9.5.2
612
boto3>=1.17.74
713
bottle>=0.12.25
814
celery>=5.2.7
915
Django>=4.2.16
10-
# FastAPI depends on pydantic-core which requires rust to be installed and
11-
# it's not compiling due to python_version restrictions.
12-
# fastapi>=0.115.0; python_version >= "3.13"
16+
# fastapi>=0.115.0
1317
flask>=2.3.2
14-
# gevent is taking more than 20min to build on 3.14
15-
# gevent>=23.9.0.post1
1618
grpcio>=1.14.1
1719
google-cloud-pubsub>=2.0.0
1820
google-cloud-storage>=1.24.0
@@ -24,20 +26,24 @@ mysqlclient>=2.0.3
2426
PyMySQL[rsa]>=1.0.2
2527
psycopg2-binary>=2.8.6
2628
pika>=1.2.0
29+
# protobuf<=6.30.2
2730
pymongo>=3.11.4
2831
pyramid>=2.0.1
2932
pytest-mock>=3.12.0
3033
pytz>=2024.1
3134
redis>=3.5.3
3235
requests-mock
3336
responses<=0.17.0
34-
# Sanic doesn't support python-3.14 yet
35-
# sanic>=19.9.0
36-
# sanic-testing>=24.6.0
37-
starlette>=0.38.2
37+
sanic>=19.9.0
38+
sanic-testing>=24.6.0
39+
spyne>=2.14.0
3840
sqlalchemy>=2.0.0
41+
starlette>=0.38.2;
3942
tornado>=6.4.1
4043
uvicorn>=0.13.4
4144
urllib3>=1.26.5
4245
httpx>=0.27.0
43-
protobuf<=6.30.2
46+
gevent>=23.9.0.post1
47+
confluent-kafka>=2.0.0
48+
kafka-python-ng>=2.0.0
49+

0 commit comments

Comments
 (0)