-
Notifications
You must be signed in to change notification settings - Fork 22
33 lines (31 loc) · 982 Bytes
/
run_tests.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
name: run tests
on: [push, pull_request]
jobs:
run_tests:
runs-on: ubuntu-20.04
steps:
- name: Check out source
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install postgis
uses: huaxk/postgis-action@v1
with:
postgresql db: 'gis'
postgresql user: 'gis_admin'
postgresql password: 'admin'
- name: Install packages
run: sudo apt-get update && sudo apt-get install -y build-essential protobuf-compiler libprotobuf-dev python3 #proj-bin libproj-dev
- name: Activate cache for python packages
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install pip requirements
run: pip install -r requirements.txt
- name: Run tests
run: python manage.py test