Skip to content

Commit

Permalink
Merge pull request #200 from peter-wangxu/upgrade_python_ci
Browse files Browse the repository at this point in the history
add python3.9~3.12 ci tests
  • Loading branch information
peter-wangxu authored Feb 8, 2024
2 parents 4645151 + dcc8491 commit 65c7fe9
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
64 changes: 62 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
echo Failed waiting for MySQL && exit 1
- run:
command: |
sudo pip install tox
pip install tox
- run:
command: | # tell the operating system to remove the file size limit on core dump files
ulimit -c unlimited
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
py38:
docker:
# Primary container image where all steps run.
- image: circleci/python:3.8.2
- image: cimg/python:3.8
environment:
TOXENV: py38
# MySQL env for mysql queue tests
Expand All @@ -125,6 +125,62 @@ jobs:
MYSQL_USER: user
MYSQL_PASSWORD: passw0rd
steps: *common_steps
py39:
docker:
# Primary container image where all steps run.
- image: cimg/python:3.9
environment:
TOXENV: py39
# MySQL env for mysql queue tests
- image: circleci/mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: testqueue
MYSQL_USER: user
MYSQL_PASSWORD: passw0rd
steps: *common_steps
py310:
docker:
# Primary container image where all steps run.
- image: cimg/python:3.10
environment:
TOXENV: py310
# MySQL env for mysql queue tests
- image: circleci/mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: testqueue
MYSQL_USER: user
MYSQL_PASSWORD: passw0rd
steps: *common_steps
py311:
docker:
# Primary container image where all steps run.
- image: cimg/python:3.11
environment:
TOXENV: py311
# MySQL env for mysql queue tests
- image: circleci/mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: testqueue
MYSQL_USER: user
MYSQL_PASSWORD: passw0rd
steps: *common_steps
py312:
docker:
# Primary container image where all steps run.
- image: cimg/python:3.12
environment:
TOXENV: py312
# MySQL env for mysql queue tests
- image: circleci/mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: testqueue
MYSQL_USER: user
MYSQL_PASSWORD: passw0rd
steps: *common_steps

pep8:
docker:
Expand Down Expand Up @@ -168,4 +224,8 @@ workflows:
- py36
- py37
- py38
- py39
- py310
- py311
- py312
- cover
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def get_extras():
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries'
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
minversion = 2.0
skipsdist = True
recreate = false
envlist = py27, py34, py35, py36, py37, pep8, cover
envlist = py27, py34, py35, py36, py37, py38, py39, py310, py311, py312, pep8, cover
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/extra-requirements.txt
-r{toxinidir}/requirements.txt
Expand Down

0 comments on commit 65c7fe9

Please sign in to comment.