# 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-24.04 # TODO: update to ubuntu-latest when django drops python 3.6 strategy: fail-fast: false matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] django-version: ["4.2", "5.0", "5.1", "5.2"] # Todo: add "dev" back exclude: - python-version: "3.8" django-version: "5.0" - python-version: "3.8" django-version: "5.1" - python-version: "3.8" django-version: "5.2" - python-version: "3.9" django-version: "5.0" - python-version: "3.9" django-version: "5.1" - python-version: "3.9" django-version: "5.2" # - python-version: "3.6" # django-version: "dev" # - python-version: "3.7" # django-version: "dev" steps: - uses: actions/checkout@v4 - 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@v5 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 }}