From c18c0ba20dbbcfe595eb4009b80ea9891df342e2 Mon Sep 17 00:00:00 2001 From: Putu Widyantara Date: Mon, 26 Feb 2024 22:35:51 +0800 Subject: [PATCH] [ci] setup workflow for jupyter notebook --- .github/workflows/jupyter.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/jupyter.yml diff --git a/.github/workflows/jupyter.yml b/.github/workflows/jupyter.yml new file mode 100644 index 0000000..bfeb88b --- /dev/null +++ b/.github/workflows/jupyter.yml @@ -0,0 +1,27 @@ +name: Jupyter Notebook + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Run Jupyter + run: jupyter execute notebook.ipynb