-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 1.04 KB
/
gen-studies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update Studies
on:
workflow_dispatch:
push:
paths:
- 'resources/kernel_metadata/**'
jobs:
notebook_update:
name: Regen jupyter notebook
concurrency: ci-studies
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r studies/requirements.txt
- name: Update analysis notebook
env:
PLOTLY: "static"
run: |
python -m pip install jupyter nbconvert nbformat
jupyter nbconvert --to notebook --execute studies/*.ipynb --inplace
- name: Pull modif
run: git pull
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automation gen studies files