-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (53 loc) · 1.6 KB
/
ci-development.yml
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
name: Continuous Integration for development
on: pull_request
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install lint dependencies
run: |
pip install pre-commit black
- name: Install and run pre-commit
uses: pre-commit/action@v3.0.0
linux-tests:
needs:
- lint
strategy:
fail-fast: false
matrix:
config:
- python-version: "3.10"
tox: 310
- python-version: 3.11
tox: 311
- python-version: 3.12
tox: 312
poetry-version: [ 1.7.0 ]
os: [ ubuntu-22.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up testing Python ${{ matrix.config.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.python-version }}
- name: Set up base Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.3.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: |
sudo add-apt-repository -y ppa:ubuntugis/ppa && sudo apt-get update && sudo apt-get install -y build-essential gdal-bin libgdal-dev
python -m pip install --upgrade pip tox
- name: Run tox
run: tox -e py${{ matrix.config.tox }}