File tree 2 files changed +49
-5
lines changed
2 files changed +49
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Generate Solutions Files
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ paths :
8
+ - source/exercises100.ktx
9
+
10
+ jobs :
11
+ generate_files :
12
+ runs-on : ubuntu-22.04 # Python 3.7 is not supported on latest Ubuntu
13
+
14
+ permissions :
15
+ contents : write
16
+
17
+ steps :
18
+ - name : Checkout repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Setup Python
22
+ uses : actions/setup-python@v5
23
+ with :
24
+ python-version : ' 3.7'
25
+ cache : ' pip'
26
+
27
+ - name : Install dependencies
28
+ run : pip3 install -r requirements.txt
29
+
30
+ - name : Generate solutions files
31
+ run : python3 generators.py
32
+
33
+ - name : Set environment variables
34
+ run : echo "SHA_SHORT=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
35
+
36
+ - name : Commit changes
37
+ uses : stefanzweifel/git-auto-commit-action@v5
38
+ with :
39
+ commit_message : " solutions update from ${{ env.SHA_SHORT }}"
40
+ file_pattern : >
41
+ 100_Numpy_exercises.ipynb
42
+ 100_Numpy_random.ipynb
43
+ 100_Numpy_exercises.md
44
+ 100_Numpy_exercises_with_hints.md
45
+ 100_Numpy_exercises_with_hints_with_solutions.md
46
+ 100_Numpy_exercises_with_solutions.md
Original file line number Diff line number Diff line change 1
- numpy == 1.17.4
2
- pandas == 0.25.3
3
- jupyter == 1.0.0
4
- jupyterthemes == 0.20.0
5
- mdutils == 1.0.0
1
+ numpy
2
+ mdutils
3
+ nbformat
You can’t perform that action at this time.
0 commit comments