-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 910 Bytes
/
Copy pathpr-test.yml
File metadata and controls
32 lines (26 loc) · 910 Bytes
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
name: Test README.ipynb
on: [pull_request]
jobs:
test_readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jupyter
pip install nbconvert
pip install black_nbconvert
pip install markupsafe==2.0.1
pip install toml
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Clear and format Jupyter Notebook output
run: |
jupyter nbconvert --clear-output --inplace *.ipynb
black_nbconvert .
- name: Convert README ipynb to md
run: |
rm -rf README_files
jupyter nbconvert --to markdown --execute README.ipynb