exclude python 3.6 for django 5 #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Test Matrix | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 # TODO: update to ubuntu-latest when django drops python 3.6 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] | |
django-version: ["3.2", "4.0", "4.1", "4.2", "5.0"] # Todo: add "dev" back | |
exclude: | |
- python-version: "3.6" | |
django-version: "4.0" | |
- python-version: "3.7" | |
django-version: "4.0" | |
- python-version: "3.6" | |
django-version: "4.1" | |
- python-version: "3.7" | |
django-version: "4.1" | |
- python-version: "3.6" | |
django-version: "4.2" | |
- python-version: "3.7" | |
django-version: "4.2" | |
- python-version: "3.6" | |
django-version: "5.0" | |
- python-version: "3.7" | |
django-version: "5.0" | |
- python-version: "3.8" | |
django-version: "5.0" | |
- python-version: "3.9" | |
django-version: "5.0" | |
# - python-version: "3.6" | |
# django-version: "dev" | |
# - python-version: "3.7" | |
# django-version: "dev" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install OS dependencies | |
run: | | |
sudo apt install -y binutils libproj-dev gdal-bin libsqlite3-mod-spatialite | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip wheel virtualenv tox coveralls | |
- name: Erase cached coverage | |
run: | | |
coverage erase | |
- name: Flake8 | |
run: | | |
tox -e py${{matrix.python-version}}-flake8 | |
- name: Docs | |
run: | | |
tox -e py${{matrix.python-version}}-docs | |
- name: Test with Tox | |
run: | | |
tox -e py${{matrix.python-version}}-dj${{matrix.django-version}} | |
- name: Upload coverage data to coveralls.io | |
run: coveralls --service=github | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |