Skip to content

Commit cdf03ba

Browse files
committed
create lint.yaml : add flake8 linting for code quality checks
1 parent ad47fcd commit cdf03ba

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/lint.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+
lint:
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 flake8
37+
run: |
38+
flake8 --exclude=mlruns .
39+

0 commit comments

Comments
 (0)