Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add python 3.12 support #401

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 11 additions & 22 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

Loading