Skip to content

Pratikshya TL

Pratikshya TL #88

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-functions:
name: Run scripts (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install GRASS GIS
run: |
sudo add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install --yes grass grass-dev
- name: Test GRASS GIS
run: |
grass --tmp-location XY --exec g.version -e
grass --tmp-location XY --exec python --version
- name: Cache sample data
uses: actions/cache@v1
id: cache
with:
path: ./nc_spm_08_grass7
key: ${{ runner.os }}-data
- name: Get sample data
if: steps.cache.outputs.cache-hit != 'true'
run: |
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: Get addons
run: |
grass --tmp-location XY --exec g.extension r.accumulate
- name: Test execution of Python files
run: |
python3 ./tests/functions.py