Skip to content

Commit

Permalink
Dropping Python3.7 support, as it is very EoL and CI tasks were takin…
Browse files Browse the repository at this point in the history
…g 6 hours
  • Loading branch information
carlio committed Jul 20, 2024
1 parent 9940b8a commit 87100ea
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
46 changes: 33 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ jobs:
export PYTHON=${{ matrix.python-version }}
tox
test:
test_latest:
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, "3.10", "3.11", "3.12"]
django-version: [-main, "4.0"]
python-version: ["3.10", "3.11", "3.12"]
django-version: ["5.0", "-main"]

steps:
- uses: actions/checkout@v3
Expand All @@ -67,6 +67,34 @@ jobs:
pip install coveralls
coveralls --service=github
test:
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", "3.10", "3.11", "3.12"]
django-version: ["4.0", "4.1", "4.2"]

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

- name: Execute tests
run: |
pip install -U pip poetry tox
poetry install
export DJANGO=${{ matrix.django-version }}
export PYTHON=${{ matrix.python-version }}
export TOXENV=$(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)
tox
test_deprecated: # testing older versions of python+django
name:
test old stuff / Django@${{ matrix.django-version }} / Python@${{
Expand All @@ -75,7 +103,7 @@ jobs:
strategy: # TODO: use a YAML anchor - not supported in GitHub actions "yet"
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9]
django-version: [3.2, 3.1, "3.0", "2.2"]

steps:
Expand All @@ -95,19 +123,11 @@ jobs:
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
build_and_package_sanity:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pip install pytest pytest-cov \
"django-tastypie>=0.14.6" \
"djangorestframework>=3.13.1"

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

0 comments on commit 87100ea

Please sign in to comment.