Skip to content

Commit 41020e2

Browse files
committed
create unit-test.yaml
1 parent 671029b commit 41020e2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/unit-test.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Financial Risk Score Prediction CI
2+
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
11+
jobs:
12+
unit_test:
13+
runs-on: ubuntu-latest
14+
#runs-on: ${{matrix.os}}
15+
16+
#strategy:
17+
#matrix:
18+
#os: [ubuntu-latest, windows-latest, macos-latest]
19+
#python-version: ['3.9', '3.10', '3.11']
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v3
24+
25+
- name: Setup Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: '3.11.4'
29+
#python-version: ${{matrix.python-version}}
30+
31+
- name: Install dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install -r requirements.txt
35+
36+
- name: Run unit test
37+
run: |
38+
pytest tests/
39+

0 commit comments

Comments
 (0)