Skip to content

Commit 821a4d2

Browse files
committed
tox.ini: Add test environment for Python 3.10
1 parent 8f896c8 commit 821a4d2

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

.github/common.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Shared common variables
22

33
CI_IMAGE_VERSION=master-359695845
4-
CI_TOXENV_MAIN=py36,py37,py38-nocover,py39-nocover
5-
CI_TOXENV_PLUGINS=py36-plugins,py37-plugins,py38-plugins-nocover,py39-plugins-nocover
4+
CI_TOXENV_MAIN=py36,py37,py38-nocover,py39-nocover,py310-nocover
5+
CI_TOXENV_PLUGINS=py36-plugins,py37-plugins,py38-plugins-nocover,py39-plugins-nocover,py310-plugins-nocover
66
CI_TOXENV_ALL="${CI_TOXENV_MAIN},${CI_TOXENV_PLUGINS}"

tox.ini

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Tox global configuration
33
#
44
[tox]
5-
envlist = py{36,37},py38-nocover,py39-nocover
5+
envlist = py{36,37},py{38,39,310}-nocover
66
skip_missing_interpreters = true
77
isolated_build = true
88

@@ -18,29 +18,29 @@ BST_PLUGINS_EXPERIMENTAL_VERSION = 1.93.4
1818
[testenv]
1919
usedevelop =
2020
# This is required by Cython in order to get coverage for cython files.
21-
py{36,37,38,39}-!nocover: True
21+
py{36,37,38,39,310}-!nocover: True
2222

2323
commands =
2424
# Running with coverage reporting enabled
25-
py{36,37,38,39}-!plugins-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs}
25+
py{36,37,38,39,310}-!plugins-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc {posargs}
2626
# Running with coverage reporting disabled
27-
py{36,37,38,39}-!plugins-nocover: pytest --basetemp {envtmpdir} {posargs}
27+
py{36,37,38,39,310}-!plugins-nocover: pytest --basetemp {envtmpdir} {posargs}
2828
# Running external plugins tests with coverage reporting enabled
29-
py{36,37,38,39}-plugins-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc --plugins {posargs}
29+
py{36,37,38,39,310}-plugins-!nocover: pytest --basetemp {envtmpdir} --cov=buildstream --cov-config .coveragerc --plugins {posargs}
3030
# Running external plugins tests with coverage disabled
31-
py{36,37,38,39}-plugins-nocover: pytest --basetemp {envtmpdir} --plugins {posargs}
31+
py{36,37,38,39,310}-plugins-nocover: pytest --basetemp {envtmpdir} --plugins {posargs}
3232
commands_post:
33-
py{36,37,38,39}-!nocover: mkdir -p .coverage-reports
34-
py{36,37,38,39}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
33+
py{36,37,38,39,310}-!nocover: mkdir -p .coverage-reports
34+
py{36,37,38,39,310}-!nocover: mv {envtmpdir}/.coverage {toxinidir}/.coverage-reports/.coverage.{env:COVERAGE_PREFIX:}{envname}
3535
deps =
36-
py{36,37,38,39}: -rrequirements/requirements.txt
37-
py{36,37,38,39}: -rrequirements/dev-requirements.txt
36+
py{36,37,38,39,310}: -rrequirements/requirements.txt
37+
py{36,37,38,39,310}: -rrequirements/dev-requirements.txt
3838

3939
# Install local sample plugins for testing pip plugin origins
40-
py{36,37,38,39}: {toxinidir}/tests/plugins/sample-plugins
40+
py{36,37,38,39,310}: {toxinidir}/tests/plugins/sample-plugins
4141

4242
# Install external plugins for plugin tests
43-
py{36,37,38,39}-plugins: git+https://gitlab.com/buildstream/bst-plugins-experimental.git@{env:BST_PLUGINS_EXPERIMENTAL_VERSION:{[config]BST_PLUGINS_EXPERIMENTAL_VERSION}}#egg=bst_plugins_experimental[deb]
43+
py{36,37,38,39,310}-plugins: git+https://gitlab.com/buildstream/bst-plugins-experimental.git@{env:BST_PLUGINS_EXPERIMENTAL_VERSION:{[config]BST_PLUGINS_EXPERIMENTAL_VERSION}}#egg=bst_plugins_experimental[deb]
4444

4545
# Only require coverage and pytest-cov when using it
4646
!nocover: -rrequirements/cov-requirements.txt
@@ -68,17 +68,17 @@ passenv =
6868
# These keys are not inherited by any other sections
6969
#
7070
setenv =
71-
py{36,37,38,39}: COVERAGE_FILE = {envtmpdir}/.coverage
72-
py{36,37,38,39}: BST_TEST_HOME = {envtmpdir}
73-
py{36,37,38,39}: BST_TEST_XDG_CACHE_HOME = {envtmpdir}/cache
74-
py{36,37,38,39}: BST_TEST_XDG_CONFIG_HOME = {envtmpdir}/config
75-
py{36,37,38,39}: BST_TEST_XDG_DATA_HOME = {envtmpdir}/share
71+
py{36,37,38,39,310}: COVERAGE_FILE = {envtmpdir}/.coverage
72+
py{36,37,38,39,310}: BST_TEST_HOME = {envtmpdir}
73+
py{36,37,38,39,310}: BST_TEST_XDG_CACHE_HOME = {envtmpdir}/cache
74+
py{36,37,38,39,310}: BST_TEST_XDG_CONFIG_HOME = {envtmpdir}/config
75+
py{36,37,38,39,310}: BST_TEST_XDG_DATA_HOME = {envtmpdir}/share
7676
# This is required to get coverage for Cython
77-
py{36,37,38,39}-!nocover: BST_CYTHON_TRACE = 1
77+
py{36,37,38,39,310}-!nocover: BST_CYTHON_TRACE = 1
7878
randomized: PYTEST_ADDOPTS="--random-order-bucket=global"
7979

8080
whitelist_externals =
81-
py{36,37,38,39}:
81+
py{36,37,38,39,310}:
8282
mv
8383
mkdir
8484

0 commit comments

Comments
 (0)