diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5802fe..a849bc2 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,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 diff --git a/tox.ini b/tox.ini index f5d0190..5dda256 100644 --- a/tox.ini +++ b/tox.ini @@ -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 @@ -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} +