diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0e218a..287822a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,10 @@ name: Python CI on: push: - branches: [ main ] + branches: [main] pull_request: branches: - - '**' + - '**' jobs: @@ -15,30 +15,37 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.9'] - toxenv: ["py39", "quality", "docs", "pii_check"] + python-version: + - '3.9' + - '3.12' + toxenv: + - "py39" + - "py312" + - "quality" + - "docs" + - "pii_check" steps: - - uses: actions/checkout@v3 - - name: setup python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install pip - run: pip install -r requirements/pip.txt - - - name: Install Dependencies - run: pip install -r requirements/ci.txt - - - name: Run Tests - env: - TOXENV: ${{ matrix.toxenv }} - run: tox - - - name: Run coverage - if: matrix.python-version == '3.9' && matrix.toxenv == 'py39' - uses: codecov/codecov-action@v3 - with: - flags: unittests - fail_ci_if_error: true + - uses: actions/checkout@v3 + - name: setup python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install pip + run: pip install -r requirements/pip.txt + + - name: Install Dependencies + run: pip install -r requirements/ci.txt + + - name: Run Tests + env: + TOXENV: ${{ matrix.toxenv }} + run: tox + + - name: Run coverage + if: matrix.python-version == '3.9' && matrix.toxenv == 'py39' + uses: codecov/codecov-action@v3 + with: + flags: unittests + fail_ci_if_error: true diff --git a/tox.ini b/tox.ini index f0b2e4b..708346f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py39-django{42}, quality, docs, pii_check +envlist = py{39, 312}-django{42}, quality, docs, pii_check skipsdist = true [doc8]