Skip to content

Pratikshya TL

Pratikshya TL #73

Workflow file for this run

name: Render activities
on:
pull_request:
branches:
- master
jobs:
render:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install six
if [ -f .github/workflows/requirements.txt ]; then pip install -r .github/workflows/requirements.txt; fi
- 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: Check versions
run: |
python --version
python3 --version
grass --version
grass --tmp-location XY --exec python --version
grass --tmp-location XY --exec python3 --version
grass --tmp-location XY --exec g.version -e
- 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: Run
run: |
mkdir pages
cd pages
../website/render_activities.py ../activities/config.json ../nc_spm_08_grass7/user1
- name: Archive code coverage results
uses: actions/upload-artifact@v2
with:
name: activities-as-html
path: |
pages
!pages/*.png
!pages/index.html
retention-days: 7