diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c739620e..6526d2aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,10 +3,10 @@ name: Python CI on: push: branches: - - master + - master pull_request: branches: - - '**' + - '**' jobs: run_tests: @@ -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 diff --git a/tox.ini b/tox.ini index 8a81cbfd..26e3b998 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, quality, formatting +envlist = py{38, 312} quality, formatting [testenv:quality] basepython = python @@ -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]