Skip to content

Commit

Permalink
Added testing to CI for Djago 4.0 (pylint-dev#354)
Browse files Browse the repository at this point in the history
* Added testing to CI for Djago 4.0

* 2.5.2 Changelog notes
  • Loading branch information
carlio authored Feb 18, 2022
1 parent eec2b60 commit bbce61b
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,47 @@ jobs:
test:
name: test / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
name: test latest / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
django-version: [-main, "4.0"]

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

- name: Execute tests
run: |
pip install tox
pip install -e .[for_tests]
export DJANGO=${{ matrix.django-version }}
export PYTHON=${{ matrix.python-version }}
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
tox
- name: Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install coveralls
coveralls --service=github
test_deprecated: # testing older versions of python+django
name: test old stuff / Django@${{ matrix.django-version }} / Python@${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
django-version: [-main, 3.2, 3.1, "3.0", "2.0", 1.11]
django-version: [3.2, 3.1, "3.0", "2.0", 1.11]

steps:
- uses: actions/checkout@v2
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Changelog
=========

Version 2.5.2 (18 Feb 2022)
---------------------------

Bugfixes
~~~~~~~~

- Fixed crash with assigning a class to a variable, and referencing the variable when subclassing (`#349 <https://github.com/PyCQA/pylint-django/issues/349>`_)

Other
~~~~~

- CI now tests against Django 4.0


Version 2.5.1 (16 Feb 2022)
---------------------------

Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ envlist =
readme
py{36}-django{111,20,-master}
py{36,37,38,39}-django{22,30,31,32}
py{38,39}-django40

requires =
pip >=21.0.1
Expand Down Expand Up @@ -41,6 +42,7 @@ deps =
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django-main: Django
django-main: git+https://github.com/pycqa/astroid@main
django-main: git+https://github.com/pycqa/pylint@main
Expand All @@ -51,7 +53,7 @@ allowlist_externals =
django_not_installed: pylint
readme: bash
py{36}-django{111,20,-main}: coverage
py{36,37,38,39}-django{22,30,31,32}: coverage
py{36,37,38,39}-django{22,30,31,32,40}: coverage
clean: find
clean: rm

Expand Down

0 comments on commit bbce61b

Please sign in to comment.