Skip to content

Commit

Permalink
adding notebook to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Xie YiFU committed May 15, 2024
1 parent cb07250 commit ecad189
Show file tree
Hide file tree
Showing 3 changed files with 35 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
Empty file added src/ipynb/index.ipynb
Empty file.
6 changes: 6 additions & 0 deletions src/ipynb/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ipykernel
nbconvert
pandas
plantuml
igraph
cairocffi

0 comments on commit ecad189

Please sign in to comment.