Skip to content

Commit 17609e7

Browse files
committed
Add py3.8/3.9/3.10/3.11 support
1 parent 40f7325 commit 17609e7

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/lint-and-unit-tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ jobs:
3131
fail-fast: false
3232
matrix:
3333
version:
34-
- "3.6"
3534
- "3.8"
3635
- "3.9"
36+
- "3.10"
37+
- "3.11"
3738
steps:
3839
- uses: actions/checkout@v3
3940

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ compilepy3:
149149
@echo
150150
@echo "==================== unit-tests-py3 ===================="
151151
@echo
152-
NOSE_WITH_TIMER=$(NOSE_WITH_TIMER) tox -e py36-unit -vv
152+
NOSE_WITH_TIMER=$(NOSE_WITH_TIMER) tox -e py38-unit -vv
153153

154154
.PHONY: .clone_st2_repo
155155
.clone_st2_repo: /tmp/st2

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838
"License :: OSI Approved :: Apache Software License",
3939
"Programming Language :: Python",
4040
"Programming Language :: Python :: 3",
41-
"Programming Language :: Python :: 3.6",
42-
"Programming Language :: Python :: 3.7",
4341
"Programming Language :: Python :: 3.8",
42+
"Programming Language :: Python :: 3.9",
43+
"Programming Language :: Python :: 3.10",
44+
"Programming Language :: Python :: 3.11",
4445
"Environment :: Console",
4546
],
4647
platforms=["Any"],

tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36-unit,py36-integration
2+
envlist = py38-unit,py38-integration
33
skipsdist = true
44
skip_missing_interpreters=true
55

@@ -19,8 +19,8 @@ deps = -r/tmp/st2/requirements.txt
1919
-e/tmp/st2/st2reactor
2020

2121
# Python 3 tasks
22-
[testenv:py36-unit]
23-
basepython = python3.6
22+
[testenv:py38-unit]
23+
basepython = python3.8
2424
setenv = PYTHONPATH = {toxinidir}:/tmp/st2/st2common:/tmp/st2/st2auth:/tmp/st2/st2api:/tmp/st2/st2actions:/tmp/st2/st2exporter:/tmp/st2/st2reactor:/tmp/st2/st2stream:/tmp/st2/st2tests:/tmp/st2/contrib/runners/action_chain_runner:/tmp/st2/contrib/runners/local_runner:/tmp/st2/contrib/runners/python_runner:/tmp/st2/contrib/runners/http_runner:/tmp/st2/contrib/runners/noop_runner:/tmp/st2/contrib/runners/announcement_runner:/tmp/st2/contrib/runners/remote_runner:/tmp/st2/contrib/runners/remote_runner:/tmp/st2/contrib/runners/mistral_v2:/tmp/st2/contrib/runners/orquesta_runner:/tmp/st2/contrib/runners/inquirer_runner:/tmp/st2/contrib/runners/http_runner:/tmp/st2/contrib/runners/winrm_runner
2525
VIRTUALENV_DIR = {envdir}
2626
passenv = NOSE_WITH_TIMER TRAVIS
@@ -34,8 +34,8 @@ commands =
3434
nosetests --rednose --immediate -sv tests/unit/controllers/api/v1/
3535
nosetests --rednose --immediate -sv tests/unit/controllers/stream/v1/
3636

37-
[testenv:py36-integration]
38-
basepython = python3.6
37+
[testenv:py38-integration]
38+
basepython = python3.8
3939
setenv = PYTHONPATH = {toxinidir}/external:/tmp/st2/st2common:/tmp/st2/st2auth:/tmp/st2/st2api:/tmp/st2/st2actions:/tmp/st2/st2exporter:/tmp/st2/st2reactor:/tmp/st2/st2stream:/tmp/st2/st2tests:/tmp/st2/contrib/runners/action_chain_runner:/tmp/st2/contrib/runners/local_runner:/tmp/st2/contrib/runners/python_runner:/tmp/st2/contrib/runners/http_runner:/tmp/st2/contrib/runners/noop_runner:/tmp/st2/contrib/runners/announcement_runner:/tmp/st2/contrib/runners/remote_runner:/tmp/st2/contrib/runners/remote_runner:/tmp/st2/contrib/runners/mistral_v2:/tmp/st2/contrib/runners/orquesta_runner:/tmp/st2/contrib/runners/inquirer_runner:/tmp/st2/contrib/runners/http_runner:/tmp/st2/contrib/runners/winrm_runner
4040
VIRTUALENV_DIR = {envdir}
4141
passenv = NOSE_WITH_TIMER TRAVIS

0 commit comments

Comments
 (0)