Skip to content

Merge pull request #19 from eWaterCycle/fix_HBV_forcing #7

Merge pull request #19 from eWaterCycle/fix_HBV_forcing

Merge pull request #19 from eWaterCycle/fix_HBV_forcing #7

Workflow file for this run

# This script tests if the Jupyter Book builds correctly
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
test-book:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Setup virtual environment
uses: syphar/restore-virtualenv@v1
with:
requirement_files: requirements.txt
- name: Setup pip cache
uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: Install dependencies
run: pip install -r requirements.txt
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: Build book
run: jupyter book build book/