-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55d6b89
commit d17a94a
Showing
2 changed files
with
36 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
234
docs/v1/examples/notebooks/template/notebook_styles.css
This file was deleted.
Oops, something went wrong.