Skip to content

Commit

Permalink
Update github actions to run ruff, drop testing django 3.2, add testi…
Browse files Browse the repository at this point in the history
…ng django 5.0, 5.1, 5.2
  • Loading branch information
jmichalicek committed Jul 19, 2024
1 parent bebac30 commit 6ffddb8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["django==4.1.*", "django==4.2.*", "django==5.0.*", "django==5.1.*", "django==5.2.*"]
exclude:
- python-version: "3.8"
django-version: "django>4.2"
- python-version: "3.9"
django-version: "django>4.2"
- python-version: "3.12"
django-version: "django<4.2.8"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -24,11 +32,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
- name: Lint with flake8
- name: Lint with ruff
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
make ruff-check
- name: Run Tox
run: tox
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[tox]
envlist =
{py37,py38,py39,py310}-django-32
{py38,py39,py310,311}-django-40
{py38,py39,py310,311}-django-41
{py38,py39,py310,311,312}-django-42
{py310,311,312}-django-50
{py310,311,312}-django-51
{py310,311,312}-django-52
stats

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.11: py312

[testenv]
setenv =
Expand All @@ -27,11 +28,11 @@ deps =
-r{toxinidir}/requirements_test.txt

basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
stats: python3.9

[testenv:stats]
Expand Down

0 comments on commit 6ffddb8

Please sign in to comment.