Skip to content

Commit

Permalink
Run tests on Python 3.11 in CI (#209)
Browse files Browse the repository at this point in the history
* Test with Python 3.11

* Remove unnecessary requirements

* Clean up, upgrade and pin test requirements
  • Loading branch information
neob91-close authored Sep 23, 2024
1 parent a9efbfe commit fd909b7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ workflows:
- test-3.9:
context:
- docker-hub-creds-ro
- test-3.11:
context:
- docker-hub-creds-ro

defaults: &defaults
working_directory: ~/code
Expand All @@ -23,7 +26,7 @@ defaults: &defaults
- run:
name: Install dependencies
command: |
pip install -r requirements_tests.txt
pip install --no-deps -r requirements_tests.txt
- run:
name: Test
command: PYTHONPATH=. pytest
Expand Down Expand Up @@ -72,3 +75,14 @@ jobs:
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
test-3.11:
<<: *defaults
docker:
- image: cimg/python:3.11
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
- image: redis:3.2.12-alpine
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ aiohttp==3.9.5
aioredis==1.3.1
aiosignal==1.2.0
async-timeout==4.0.2
chardet==3.0.3
attrs==24.2.0
click==8.0.4
frozenlist==1.3.0
hiredis==0.2.0
frozenlist==1.4.0
hiredis==2.1.0
idna==3.7
multidict==5.2.0
packaging==21.3
pyparsing==2.2.0
six==1.16.0
structlog==20.1.0
websockets==12.0
yarl==1.7.2
yarl==1.9.3
2 changes: 1 addition & 1 deletion requirements_prometheus.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt
prometheus-async==17.3.0
prometheus-client==0.0.19

wrapt==1.16.0
5 changes: 4 additions & 1 deletion requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
-r requirements_prometheus.txt
aioresponses==0.7.6
asynctest==0.13.0
exceptiongroup==1.2.2
iniconfig==2.0.0
pluggy==1.5.0
pytest==8.0.2
pytest-asyncio==0.21.1

tomli==2.0.1

0 comments on commit fd909b7

Please sign in to comment.