-
Notifications
You must be signed in to change notification settings - Fork 53
67 lines (60 loc) · 1.83 KB
/
run.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Run the code
on:
push:
branches: "*"
jobs:
Day1:
name: Day 1 Tutorials
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Convert and execute
run: |
for file in Tutorials/Day_1/*ipynb; do echo "Converting" $file; jupyter nbconvert --to python --RegexRemovePreprocessor.patterns="^%" $file ; done
for file in Tutorials/Day_1/*py; do echo "Running" $file; python $file; done
Day2:
name: Day 2 Tutorials
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Convert and execute
run: |
for file in Tutorials/Day_2/*ipynb; do echo "Converting" $file; jupyter nbconvert --to python --RegexRemovePreprocessor.patterns="^%" $file ; done
for file in Tutorials/Day_2/*py; do echo "Running" $file; python $file; done
Day3:
name: Day 3 Tutorials
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Install requirements
run: |
pip install -r requirements.txt
- name: Execute and convert
run: |
# Skipping 3.3 as it uses wget
for file in Tutorials/Day_3/Tuto_3.[1-2]*ipynb; do echo "Converting" $file; jupyter nbconvert --to python --RegexRemovePreprocessor.patterns="^%" $file ; done
for file in Tutorials/Day_3/*py; do echo "Running" $file; python $file; done