Skip to content

Commit bbce61b

Browse files
authored
Added testing to CI for Djago 4.0 (#354)
* Added testing to CI for Djago 4.0 * 2.5.2 Changelog notes
1 parent eec2b60 commit bbce61b

File tree

3 files changed

+53
-3
lines changed

3 files changed

+53
-3
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,47 @@ jobs:
3333
3434
3535
test:
36-
name: test / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
36+
name: test latest / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
3737
runs-on: ubuntu-latest
3838
strategy:
39+
fail-fast: false
40+
matrix:
41+
python-version: [3.8, 3.9]
42+
django-version: [-main, "4.0"]
43+
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Set up Python ${{ matrix.python-version }}
47+
uses: actions/setup-python@v1
48+
with:
49+
python-version: ${{ matrix.python-version }}
50+
51+
- name: Execute tests
52+
run: |
53+
pip install tox
54+
pip install -e .[for_tests]
55+
56+
export DJANGO=${{ matrix.django-version }}
57+
export PYTHON=${{ matrix.python-version }}
58+
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
59+
tox
60+
61+
- name: Coveralls
62+
env:
63+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
run: |
66+
pip install coveralls
67+
coveralls --service=github
68+
69+
test_deprecated: # testing older versions of python+django
70+
name: test old stuff / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
71+
runs-on: ubuntu-latest
72+
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
3973
fail-fast: false
4074
matrix:
4175
python-version: [3.6, 3.7, 3.8, 3.9]
42-
django-version: [-main, 3.2, 3.1, "3.0", "2.0", 1.11]
76+
django-version: [3.2, 3.1, "3.0", "2.0", 1.11]
4377

4478
steps:
4579
- uses: actions/checkout@v2

CHANGELOG.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Changelog
22
=========
33

4+
Version 2.5.2 (18 Feb 2022)
5+
---------------------------
6+
7+
Bugfixes
8+
~~~~~~~~
9+
10+
- Fixed crash with assigning a class to a variable, and referencing the variable when subclassing (`#349 <https://github.com/PyCQA/pylint-django/issues/349>`_)
11+
12+
Other
13+
~~~~~
14+
15+
- CI now tests against Django 4.0
16+
17+
418
Version 2.5.1 (16 Feb 2022)
519
---------------------------
620

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ envlist =
1010
readme
1111
py{36}-django{111,20,-master}
1212
py{36,37,38,39}-django{22,30,31,32}
13+
py{38,39}-django40
1314

1415
requires =
1516
pip >=21.0.1
@@ -41,6 +42,7 @@ deps =
4142
django30: Django>=3.0,<3.1
4243
django31: Django>=3.1,<3.2
4344
django32: Django>=3.2,<4.0
45+
django40: Django>=4.0,<4.1
4446
django-main: Django
4547
django-main: git+https://github.com/pycqa/astroid@main
4648
django-main: git+https://github.com/pycqa/pylint@main
@@ -51,7 +53,7 @@ allowlist_externals =
5153
django_not_installed: pylint
5254
readme: bash
5355
py{36}-django{111,20,-main}: coverage
54-
py{36,37,38,39}-django{22,30,31,32}: coverage
56+
py{36,37,38,39}-django{22,30,31,32,40}: coverage
5557
clean: find
5658
clean: rm
5759

0 commit comments

Comments
 (0)