Skip to content

Commit

Permalink
added workflow for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Oct 4, 2023
1 parent efb6310 commit f3fb579
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test-deploy-book

# Only run this when a pull-request is sent to main
on:
pull_request:
branches:
- main

# This job installs dependencies, builds the book
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Install dependencies
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install dependencies
run: |
pip install -r requirements.txt
# Build the book
- name: Build the book
run: |
python scripts/generate_link_lists.py
jupyter-book build docs/

0 comments on commit f3fb579

Please sign in to comment.