-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (59 loc) · 1.68 KB
/
ci.yml
File metadata and controls
64 lines (59 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
- push
- pull_request
concurrency:
group: ci-${{ github.ref }}-${{ github.sha }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
github-action-ci:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
# Django 3.2 LTS
- python_version: "3.10"
toxenv: "py310-django32"
- python_version: "3.11"
toxenv: "py311-django32"
- python_version: "3.12"
toxenv: "py312-django32"
# Django 4.2 LTS
- python_version: "3.10"
toxenv: "py310-django42"
- python_version: "3.11"
toxenv: "py311-django42"
- python_version: "3.12"
toxenv: "py312-django42"
# Django 5.x
- python_version: "3.10"
toxenv: "py310-django50"
- python_version: "3.11"
toxenv: "py311-django50"
- python_version: "3.12"
toxenv: "py312-django50"
# Linting
- python_version: "3.10"
toxenv: "lint"
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
architecture: "x64"
- name: Install APT requirements
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gdal-bin libgdal-dev
sudo rm -rf /var/lib/apt/lists/*
- name: Install tox
run: |
pip install -U pip
pip install tox
- name: Run tests
run: tox
env:
TOXENV: ${{ matrix.toxenv }}