Skip to content

Commit

Permalink
Merge pull request #59 from OSInside/reduce_python_matrix
Browse files Browse the repository at this point in the history
Update python test matrix
  • Loading branch information
schaefi authored Oct 20, 2023
2 parents d21044e + dc37446 commit e301994
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ verbose = 1

[mypy]
ignore_missing_imports = True

[mypy-requests.packages.urllib3]
ignore_missing_imports = True
26 changes: 2 additions & 24 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ envlist =
check,
unit_py3_11,
unit_py3_10,
unit_py3_9,
unit_py3_8,
doc


[testenv]
description =
{unit_py3_8,unit_py3_9,unit_py3_10,unit_py3_11}: Unit Test run with basepython set to {basepython}
{unit_py3_10,unit_py3_11}: Unit Test run with basepython set to {basepython}
allowlist_externals =
bash
travis-sphinx
Expand All @@ -40,8 +38,6 @@ basepython =
{check,devel,doc}: python3
unit_py3_11: python3.11
unit_py3_10: python3.10
unit_py3_9: python3.9
unit_py3_8: python3.8
release: python3.10
passenv =
*
Expand All @@ -50,24 +46,6 @@ deps =
-r.virtualenv.dev-requirements.txt


# Unit Test run with basepython set to 3.8
[testenv:unit_py3_8]
setenv =
PYTHONPATH={toxinidir}/test
changedir=test/unit
commands =
{[testenv:unit]commands}


# Unit Test run with basepython set to 3.9
[testenv:unit_py3_9]
setenv =
PYTHONPATH={toxinidir}/test
changedir=test/unit
commands =
{[testenv:unit]commands}


# Unit Test run with basepython set to 3.10
[testenv:unit_py3_10]
setenv =
Expand Down Expand Up @@ -99,7 +77,7 @@ deps = {[testenv]deps}
changedir=test/unit
commands =
bash -c 'cd ../../ && ./setup.py develop'
bash -c 'cd ../../ && mypy kiwi_boxed_plugin'
bash -c 'cd ../../ && mypy --install-types --non-interactive kiwi_boxed_plugin'
pytest --doctest-modules --no-cov-on-fail --cov=kiwi_boxed_plugin \
--cov-report=term-missing --cov-fail-under=100 \
--cov-config .coveragerc {posargs}
Expand Down

0 comments on commit e301994

Please sign in to comment.