Pratikshya TL #88
Workflow file for this run
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: 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 |