Skip to content

Commit

Permalink
Add notebook for testing with Jinja2
Browse files Browse the repository at this point in the history
  • Loading branch information
DePasqualeOrg committed Jan 3, 2025
1 parent 9d79438 commit 3af4ed4
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/jupyter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Jupyter Notebooks

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
check-notebooks:
name: Check Jupyter notebooks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install nbstripout
run: pip install nbstripout

- name: Check notebooks
run: |
# Check if notebooks have outputs that should be stripped
git ls-files '*.ipynb' | xargs nbstripout --test
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,8 @@ iOSInjectionProject/
/Packages
.netrc
.idea
.swiftpm
.swiftpm

# Specific to this package

*.code-workspace
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
repos:
- repo: https://github.com/slessans/pre-commit-swift-format
rev: ""
rev: "fd627de92bdf84a75c924ed95691336d14e94cf1"
hooks:
- id: swift-format
args: ["--configuration", ".swift-format"]
- repo: https://github.com/kynan/nbstripout
rev: 0.8.1
hooks:
- id: nbstripout
Loading

0 comments on commit 3af4ed4

Please sign in to comment.