Skip to content

Commit

Permalink
feat: add python312 support
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Feb 26, 2024
1 parent 4958920 commit 00d45c8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 28 deletions.
61 changes: 34 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Python CI

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches:
- '**'
- '**'


jobs:
Expand All @@ -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
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit 00d45c8

Please sign in to comment.