Skip to content

Commit

Permalink
Add workflow to execute notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanhashmi committed Aug 7, 2023
1 parent 1a68a58 commit 8a8165c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/run-notebooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Execute notebook

on:
pull_request: {}

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- uses: yaananth/run-notebook@v2
run: |
export HOST=${{ secrets.PG_HOST }}
export DATABASE=${{ secrets.PG_DATABASE }}
export PG_USER=${{ secrets.PG_USER }}
export PASSWORD=${{ secrets.PG_PASSWORD }}
export PORT=5432
env:
RUNNER: ${{ toJson(runner) }}
SECRETS: ${{ toJson(secrets) }}
GITHUB: ${{ toJson(github) }}
with:
notebook: "notebooks/vn-connect-to-postgres.ipynb"
isReport: False
poll: True
- uses: actions/upload-artifact@v3
if: always()
with:
name: output
path: ${{ RUNNER.temp }}/nb-runner
env:
RUNNER: ${{ toJson(runner) }}

0 comments on commit 8a8165c

Please sign in to comment.