Commit 3ca708d 1 parent 47f4b09 commit 3ca708d Copy full SHA for 3ca708d
File tree 1 file changed +64
-0
lines changed
1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Financial Risk Score Prediction CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
12
+ jobs :
13
+ lint :
14
+ runs-on : ubuntu-latest
15
+ # runs-on: ${{matrix.os}}
16
+
17
+ # strategy:
18
+ # matrix:
19
+ # os: [ubuntu-latest, windows-latest, macos-latest]
20
+ # python-version: ['3.9', '3.10', '3.11']
21
+
22
+ steps :
23
+ - name : Checkout code
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Setup Python
27
+ uses : actions/setup-python@v4
28
+ with :
29
+ python-version : ' 3.11.4'
30
+ # python-version: ${{matrix.python-version}}
31
+
32
+ - name : Install dependencies
33
+ run : |
34
+ python -m pip install --upgrade pip
35
+ pip install -r requirements.txt
36
+
37
+ - name : Run flake8
38
+ run : |
39
+ flake8 --exclude=mlruns,docs .
40
+
41
+ unit_test :
42
+ runs-on : ubuntu-latest
43
+ # runs-on: ${{matrix.os}}
44
+
45
+ # strategy:
46
+ # matrix:
47
+ # os: [ubuntu-latest, windows-latest, macos-latest]
48
+ # python-version: ['3.9', '3.10', '3.11']
49
+
50
+ steps :
51
+ - name : Checkout code
52
+ uses : actions/checkout@v3
53
+
54
+ - name : Setup Python
55
+ uses : actions/setup-python@v4
56
+ with :
57
+ python-version : ' 3.11.4'
58
+ # python-version: ${{matrix.python-version}}
59
+
60
+ - name : Run unit test
61
+ env :
62
+ DAGSHUB_TOKEN : ${{ secrets.DAGSHUB_TOKEN }}
63
+ run : |
64
+ pytest tests/
You can’t perform that action at this time.
0 commit comments