Skip to content

Jupyter

Jupyter #924

Workflow file for this run

# Based on and modified from https://github.com/amrrs/jupyter-automation-gh-actions
name: Jupyter
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '15 4,12,20 * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- id: repo
name: Repo Checkout
uses: actions/checkout@v2
- id: python
name: Python Setup & Packages Installation
uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pip'
- run: pip install -r requirements.txt
- id: jupyter
name: Jupyter Notebook Execution
run: jupyter execute predictor/get_data_predict_and_make_map.ipynb
shell: bash
# Add new files in folder, commit along with other modified files, push
- id: commit
name: Commit figure
run:
git config --local user.name actions-user
git config --local user.email "actions@github.com"
git add *
git commit -am "GH ACTION Generate forecast $(date)"
git push origin main
env:
REPO_KEY: ${{secrets.GITHUB_TOKEN}}
username: github-actions