Skip to content

Commit

Permalink
Merge pull request #7 from UncleXie123/change-123
Browse files Browse the repository at this point in the history
adding notebook to CI
  • Loading branch information
UncleXie123 authored May 15, 2024
2 parents 9d7db09 + 69bb284 commit 406538a
Show file tree
Hide file tree
Showing 6 changed files with 831 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,32 @@ jobs:
name: build
path: build/
- name: Generate Docs
run: ./gradlew generateDocs
run: ./gradlew generateDocs
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Requirements
run: pip install -r src/ipynb/requirements.txt
- name: Run Notebook
run: python -m nbconvert --execute --to notebook --no-input src/ipynb/index.ipynb --output-dir='build/web'
- name: Convert Notebook to HTML
run: python -m nbconvert --to html --no-input build/web/index.ipynb
- name: Publish
uses: actions/upload-pages-artifact@v1
with:
path: build/web

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1
Binary file added src/ipynb/__pycache__/utilities.cpython-311.pyc
Binary file not shown.
Loading

0 comments on commit 406538a

Please sign in to comment.