Skip to content

Commit

Permalink
Merge pull request #14 from PetrDlouhy/update_django50
Browse files Browse the repository at this point in the history
update testing to current Django and Python, run it in GitHub actions
  • Loading branch information
dchukhin authored Aug 14, 2024
2 parents 608fd0a + ade132b commit 09b0bd3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Django CI

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install tox
run: python -m pip install tox

- name: Run tox
run: tox
22 changes: 11 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[tox]
envlist =
begin
py{27}-django-{110,111}
py{34,35,36,37}-django-{110,111,20}
py{35,36,37}-django-{21,22}
py{36,37,38}-django-{30}
py{36,37,38,39,310}-django-{32}
py{38,39,310}-django-{40}
py{38,39,310,311}-django-{41}
py{38,39,310,311,312}-django-{42}
py{310,311,312}-django-{50,51}
end
skip_missing_interpreters = True

[testenv]
usedevelop = True
extras = test
deps =
django-19: django==1.9.*
django-110: django==1.10.*
django-111: django==1.11.*
django-20: django==2.0.*
django-21: django==2.1.*
django-22: django==2.2.*
django-30: django==3.0.*
django-32: Django==3.2.*
django-40: Django==4.0.*
django-41: Django==4.1.*
django-42: Django==4.2.*
django-50: Django==5.0.*
django-51: Django>=5.1a1,<5.2
setenv =
DJANGO_SETTINGS_MODULE=django_alive.tests.settings
commands=
Expand Down

0 comments on commit 09b0bd3

Please sign in to comment.