Skip to content

Commit 77eef86

Browse files
committed
Add lint during ci(github action)
1 parent cc8cfc5 commit 77eef86

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/lint-check.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
check_lint:
11+
defaults:
12+
run:
13+
working-directory: "stackql_deploy"
14+
runs-on: ubuntu-latest
15+
if: github.event_name == 'pull_request'
16+
strategy:
17+
max-parallel: 1
18+
matrix:
19+
python-version: ["3.11"]
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Install dependencies
30+
run: pip install ruff
31+
32+
- name: Lint check with ruff
33+
run: ruff check .

0 commit comments

Comments
 (0)