Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bboynton97 committed Jul 26, 2024
1 parent 55d6b89 commit d17a94a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 234 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/notebook-gen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Check Generated Files

on: push

jobs:
check-diff:
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install Dependencies
if: always()
run: |
python -m pip install --upgrade pip
# Install your project dependencies here if necessary
- name: Run generate script
if: always()
run: python docs/v1/examples/notebooks/generate.py

- name: Check for differences
if: always()
run: |
if [[ `git status --porcelain` ]]; then
echo "Notebooks have been changed without being regenerated. Please run `python docs/v1/examples/notebooks/generate.py`."
exit 1
else
echo "No changes were detected. Notebooks up to date 💅🏻"
fi
234 changes: 0 additions & 234 deletions docs/v1/examples/notebooks/template/notebook_styles.css

This file was deleted.

0 comments on commit d17a94a

Please sign in to comment.