diff --git a/.github/workflows/run-tox.yml b/.github/workflows/run-tox.yml index 5065fd5..e69ae73 100644 --- a/.github/workflows/run-tox.yml +++ b/.github/workflows/run-tox.yml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -26,10 +26,10 @@ jobs: run: | tox - name: Upload to codecov - if: ${{matrix.python-version == '3.9'}} + if: ${{matrix.python-version == '3.10'}} uses: codecov/codecov-action@v1 with: fail_ci_if_error: false files: ./coverage.xml flags: pytest - name: "vascpy-py39" + name: "vascpy-py310" diff --git a/tox.ini b/tox.ini index 13d9f37..9df43fd 100644 --- a/tox.ini +++ b/tox.ini @@ -7,9 +7,9 @@ testdeps = [tox] minversion = 3.1.0 envlist = - py{38,39} - py39-lint - py39-coverage + py{38,39,310,311} + py310-lint + py310-coverage ignore_basepython_conflict = true [testenv] @@ -25,7 +25,7 @@ commands = isort -l 100 --profile black {[base]name} tests setup.py black -l 100 {[base]name} tests setup.py -[testenv:py39-lint] +[testenv:py310-lint] deps = mypy isort @@ -40,7 +40,7 @@ commands = pycodestyle {[base]name} pylint -j2 --ignored-modules=vtk {[base]name} -[testenv:py39-coverage] +[testenv:py310-coverage] deps = {[base]testdeps} pytest-cov @@ -78,3 +78,4 @@ python = 3.8 : py38 3.9 : py39 3.10: py310 + 3.11: py311