Skip to content

Commit 8f336c9

Browse files
Added test yaml for testing using github actions
1 parent c63b6e3 commit 8f336c9

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Unit test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
deploy:
12+
runs-on:
13+
ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up Python 3
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.11
20+
21+
- name: Install gdal
22+
run: |
23+
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
24+
sudo apt-get update
25+
sudo apt-get install libgdal-dev osmctools gdal-bin libspatialindex-dev
26+
27+
- name: Install Dependencies
28+
run: |
29+
export CPLUS_INCLUDE_PATH=/usr/include/gdal
30+
export C_INCLUDE_PATH=/usr/include/gdal
31+
pip install -r requirements-dev.txt
32+
- name: Run Tests
33+
run: |
34+
make test

0 commit comments

Comments
 (0)