Skip to content

Commit 87100ea

Browse files
committed
Dropping Python3.7 support, as it is very EoL and CI tasks were taking 6 hours
1 parent 9940b8a commit 87100ea

File tree

2 files changed

+34
-14
lines changed

2 files changed

+34
-14
lines changed

.github/workflows/build.yml

+33-13
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ jobs:
3131
export PYTHON=${{ matrix.python-version }}
3232
tox
3333
34-
test:
34+
test_latest:
3535
name:
3636
test latest / Django@${{ matrix.django-version }} / Python@${{
3737
matrix.python-version }}
3838
runs-on: ubuntu-latest
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
43-
django-version: [-main, "4.0"]
42+
python-version: ["3.10", "3.11", "3.12"]
43+
django-version: ["5.0", "-main"]
4444

4545
steps:
4646
- uses: actions/checkout@v3
@@ -67,6 +67,34 @@ jobs:
6767
pip install coveralls
6868
coveralls --service=github
6969
70+
test:
71+
name:
72+
test latest / Django@${{ matrix.django-version }} / Python@${{
73+
matrix.python-version }}
74+
runs-on: ubuntu-latest
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
79+
django-version: ["4.0", "4.1", "4.2"]
80+
81+
steps:
82+
- uses: actions/checkout@v3
83+
- name: Set up Python ${{ matrix.python-version }}
84+
uses: actions/setup-python@v4
85+
with:
86+
python-version: ${{ matrix.python-version }}
87+
88+
- name: Execute tests
89+
run: |
90+
pip install -U pip poetry tox
91+
poetry install
92+
93+
export DJANGO=${{ matrix.django-version }}
94+
export PYTHON=${{ matrix.python-version }}
95+
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
96+
tox
97+
7098
test_deprecated: # testing older versions of python+django
7199
name:
72100
test old stuff / Django@${{ matrix.django-version }} / Python@${{
@@ -75,7 +103,7 @@ jobs:
75103
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
76104
fail-fast: false
77105
matrix:
78-
python-version: [3.7, 3.8, 3.9]
106+
python-version: [3.8, 3.9]
79107
django-version: [3.2, 3.1, "3.0", "2.2"]
80108

81109
steps:
@@ -95,19 +123,11 @@ jobs:
95123
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
96124
tox
97125
98-
- name: Coveralls
99-
env:
100-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
101-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102-
run: |
103-
pip install coveralls
104-
coveralls --service=github
105-
106126
build_and_package_sanity:
107127
runs-on: ubuntu-latest
108128
strategy:
109129
matrix:
110-
python-version: ["3.11"]
130+
python-version: ["3.12"]
111131

112132
steps:
113133
- uses: actions/checkout@v3

scripts/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ pip install pytest pytest-cov \
1010
"django-tastypie>=0.14.6" \
1111
"djangorestframework>=3.13.1"
1212

13-
python pylint_django/tests/test_func.py -v "$@"
13+
python -m pytest pylint_django/tests/test_func.py -v "$@"

0 commit comments

Comments
 (0)