Skip to content

Test adding dev back to tox #104

Test adding dev back to tox

Test adding dev back to tox #104

# 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", "dev"] # Todo: add "dev" back
exclude:
- python-version: "3.6"
django-version: "4.0"
- python-version: "3.6"
django-version: "4.1"
- python-version: "3.6"
django-version: "4.2"
- python-version: "3.6"
django-version: "dev"
- python-version: "3.7"
django-version: "4.0"
- python-version: "3.7"
django-version: "4.1"
- python-version: "3.7"
django-version: "4.2"
- python-version: "3.7"
django-version: "dev"
- python-version: "3.8"
django-version: "dev"
- python-version: "3.9"
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}}
if: ${{matrix.django-version != 'dev'}}
- name: Test with Tox (Dev)
if: ${{matrix.django-version == 'dev'}}
run: |
tox -e py${{matrix.python-version}}-dj${{matrix.django-version}}
continue-on-error: true
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}