-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.65 KB
/
ci-ppa.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
56
57
name: CI with UbuntuGIS PPA
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "*.md"
- CITATION.cff
- LICENSE
schedule:
# 01:00 Pacific Time (in UTC), every Friday (morning)
- cron: '0 8 * * 5'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Add PPA
run: |
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- name: Install GRASS GIS and other dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq grass grass-dev grass-doc
- name: Get Python version
run: |
python3 --version
python --version
- name: Get GRASS GIS version
run: |
grass --version
- name: Install the module
run: |
grass --tmp-location XY --exec g.extension extension=r.pops.spread url=. --verbose
- name: Cache data for testing
id: cache-nc_spm_08_grass7
uses: actions/cache@v1
with:
path: nc_spm_08_grass7
key: ${{ runner.os }}-nc_spm_08_grass7
- name: Get sample data for testing (NC SPM sample location)
if: steps.cache-nc_spm_08_grass7.outputs.cache-hit != 'true'
run: |
grass --tmp-location XY --exec g.extension g.download.location --verbose
grass --tmp-location XY --exec g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_08_grass7.tar.gz path=~ --verbose
- name: Run test (manually specified files)
run: |
cd testsuite/
grass -c ~/nc_spm_08_grass7/test --exec ./test_r_pops_spread.py
rm -rf ~/nc_spm_08_grass7/test