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 e52edd6 commit e4e679a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Python CI
on:
push:
branches:
- master
- master
pull_request:
branches:
- '**'
- '**'

jobs:
run_tests:
Expand All @@ -15,10 +15,9 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
python-version:
- 3.8
toxenv: [ formatting,quality,python ]
- ubuntu-20.04
python-version: [3.8, '3.8', '3.12']
toxenv: [formatting, quality, python, django42]
steps:
- uses: actions/checkout@v2
- name: setup python
Expand Down
16 changes: 8 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38, quality, formatting
envlist = py{38, 312} quality, formatting

[testenv:quality]
basepython = python
Expand All @@ -12,13 +12,13 @@ deps = black
commands = black --check --diff --line-length 120 src tests setup.py

[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements/test.txt
commands =
pip install -U pip
pytest --basetemp={envtmpdir} --cov cc2olx --cov-report term-missing --cov-report xml
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements/test.txt
commands =
pip install -U pip
pytest --basetemp={envtmpdir} --cov cc2olx --cov-report term-missing --cov-report xml

[testenv:python]

0 comments on commit e4e679a

Please sign in to comment.