diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9798706..bcb82f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,10 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [py38, pylint] + python-version: + - '3.8' + - '3.12' + toxenv: [py38, pylint, django42] steps: - uses: actions/checkout@v4 diff --git a/tox.ini b/tox.ini index 0c70e9e..5059cf7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,45 +1,34 @@ [tox] -envlist = py38, coverage, pylint +envlist = py{38, 312} coverage, pylint [testenv] -deps = +deps = -r{toxinidir}/requirements/test.txt -commands = +commands = coverage run -p -m pytest {posargs:} [testenv:coverage] -deps = +deps = -r{toxinidir}/requirements/test.txt -commands = +commands = coverage combine coverage report -m coverage html [testenv:pylint] -deps = +deps = -r{toxinidir}/requirements/test.txt -commands = +commands = pylint edx_lint test setup.py [pytest] addopts = -rfe - -; Warnings that we don't want to see. -; Why we use filterwarnings instead of PYTHONWARNINGS: -; https://nedbatchelder.com/blog/201810/why_warnings_is_mysterious.html -filterwarnings = - ; .tox/py27/lib/python2.7/site-packages/backports/configparser/__init__.py:1245: - ; DeprecationWarning: You passed a bytestring. Implicitly decoding as UTF-8 string. - ; This will not work on Python 3. Please switch to using Unicode strings across the board. +filterwarnings = ignore:::backports - - ; and a bunch of these... pytest is warning about its own deprecations? - ; .tox/py27/lib/python2.7/site-packages/_pytest/compat.py:329: - ; RemovedInPytest4Warning: usage of Session.Class is deprecated, please use pytest.Class instead + ignore::pytest.PytestDeprecationWarning - - ; .tox/py35/lib/python3.5/site-packages/astroid/builder.py:231: - ; PendingDeprecationWarning: generator 'wrapped' raised StopIteration + ignore::PendingDeprecationWarning:astroid ignore::DeprecationWarning:astroid ignore::DeprecationWarning:pylint +