Add dispersers output (#68) #294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-20.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 |