Skip to content

Commit

Permalink
feat: add python 3.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
edx-requirements-bot committed Feb 23, 2024
1 parent 08db0e3 commit 6b97df5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
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

0 comments on commit 6b97df5

Please sign in to comment.