Skip to content

updated notebook dir paths #30

updated notebook dir paths

updated notebook dir paths #30

name: Python Package using Python and Pip on Windows with Jupyter Notebook
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
setup-dependencies:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Cache pip and Python dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/pip
~/AppData/Local/pip/Cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
shell: cmd
execute-dnn-notebook:
needs: setup-dependencies
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Restore pip cache
id: cache-pip
uses: actions/cache@v2
with:
path: |
~/.cache/pip
~/AppData/Local/pip/Cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
shell: cmd
- name: Execute Jupyter Notebook (DNN)
run: |
python -m jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 --ExecutePreprocessor.timeout=-1 --to notebook --execute modeling_and_evaluation/SOC_Estimation_DNN.ipynb --output executed_dnn_notebook.ipynb
shell: cmd
execute-lstm-notebook:
needs: setup-dependencies
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Restore pip cache
id: cache-pip
uses: actions/cache@v2
with:
path: |
~/.cache/pip
~/AppData/Local/pip/Cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
shell: cmd
- name: Execute Jupyter Notebook (LSTM)
run: |
python -m jupyter nbconvert --ExecutePreprocessor.kernel_name=python3 --ExecutePreprocessor.timeout=-1 --to notebook --execute modeling_and_evaluation/SOC_Estimation_LSTM.ipynb --output executed_lstm_notebook.ipynb
shell: cmd