Skip to content

Commit 7569dee

Browse files
added github action
1 parent a521c4d commit 7569dee

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/python
5+
- image: circleci/python:3.6.8-stretch
66
steps:
77
- checkout
88
- run:
99
name: Run tests
1010
command: |
1111
set -x
12-
sudo apt-get update
1312
sudo apt-get install libgdal-dev osmctools gdal-bin libspatialindex-dev
1413
virtualenv ./venv
1514
source venv/bin/activate

.github/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.8
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: 3.8
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+
30+
python -m pip install --upgrade pip
31+
virtualenv ./venv
32+
export CPLUS_INCLUDE_PATH=/usr/include/gdal
33+
export C_INCLUDE_PATH=/usr/include/gdal
34+
pip install -r requirements.txt
35+
- name: Run Tests
36+
run: |
37+
make test

0 commit comments

Comments
 (0)