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 95d6614 commit fd07432
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
27 changes: 13 additions & 14 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,18 +15,17 @@ jobs:
strategy:
matrix:
os:
- ubuntu-20.04
python-version:
- 3.8
- ubuntu-20.04
python-version: [3.8, '3.8', '3.12']
steps:
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install -r requirements/ci.txt
- name: Install dependencies
run: pip install -r requirements/ci.txt

- name: Run Tests
run: tox
- name: Run Tests
run: tox
17 changes: 9 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist = py38-django{22,30,31},quality
envlist = py{38, 312}-django{42},quality

[ci]
python =
3.8: py38
quality: flake8
3.8: py38
quality: flake8

[testenv:quality]
basepython = python
Expand All @@ -13,10 +13,11 @@ commands = flake8 user_util

[testenv]
setenv =
PYTHONPATH = {toxinidir}
PYTHONPATH = {toxinidir}
deps =
-r requirements/test.txt
-r requirements/test.txt
commands =
pip install -U pip
python setup.py develop
py.test --basetemp={envtmpdir}
pip install -U pip
python setup.py develop
py.test --basetemp={envtmpdir}

0 comments on commit fd07432

Please sign in to comment.