Skip to content

merge

merge #844

Workflow file for this run

name: CI
on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
types: [opened, reopened]
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.8'
python: [3.7]
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v2
# Python actions
- name: Set up 🐍 ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Set ENV Variables for 🐍 📞
run: echo ENV["PYTHON"] = "${{ env.pythonLocation }}/bin/python" >> $GITHUB_ENV
- name: Install dependencies 🔧
run: |
python -m pip install --upgrade pip
pip install matplotlib
# Julia actions
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@latest
env:
PYTHON : "${{ env.pythonLocation }}/bin/python"
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Python actions
- name: Set up 🐍 ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Set ENV Variables for 🐍 📞
run: echo ENV["PYTHON"] = "${{ env.pythonLocation }}/bin/python" >> $GITHUB_ENV
- name: Install dependencies 🔧
run: |
python -m pip install --upgrade pip
pip install matplotlib
# julia actions
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- uses: julia-actions/julia-buildpkg@latest
env:
PYTHON : "${{ env.pythonLocation }}/bin/python"
- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using GRASS
DocMeta.setdocmeta!(GRASS, :DocTestSetup, :(using GRASS); recursive=true)
doctest(GRASS)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}