-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (44 loc) · 1.58 KB
/
ci-backend.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
name: CI
on:
- pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: pip install -r requirements-dev.txt && pip install -r requirements.txt
- name: Lint
run: python runtests.py --lint-only
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:14-master
env:
POSTGRES_USER: whereintheworld
POSTGRES_PASSWORD: whereintheworld
POSTGRES_DB: whereintheworld
ports: ['5432:5432']
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install OS dependencies
run: |
sudo add-apt-repository -y ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal-bin python3-gdal
- name: Install Python dependencies
run: pip install -r requirements-dev.txt && pip install -r requirements.txt
- name: Tests
env:
TEST: 1
run: python runtests.py --no-lint