From e724b16c9626a3f320caf26f30487933c7c97cae Mon Sep 17 00:00:00 2001 From: "yuzhi.wx" Date: Thu, 8 Feb 2024 11:22:29 +0800 Subject: [PATCH] add python3.9~3.12 ci tests --- .circleci/config.yml | 64 ++++++++++++++++++++++++++++++++++++++++++-- setup.py | 4 +++ 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 22d0e0a..3871c78 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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 @@ -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: @@ -168,4 +224,8 @@ workflows: - py36 - py37 - py38 + - py39 + - py310 + - py311 + - py312 - cover diff --git a/setup.py b/setup.py index bfe265f..6ee6327 100644 --- a/setup.py +++ b/setup.py @@ -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' ], )