Skip to content

Commit 135aae9

Browse files
committed
submit to check CI status
1 parent a70575f commit 135aae9

File tree

3 files changed

+421
-72
lines changed

3 files changed

+421
-72
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: AINode Code Style Check
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'rel/*'
8+
- 'rc/*'
9+
paths-ignore:
10+
- 'docs/**'
11+
- 'site/**'
12+
pull_request:
13+
branches:
14+
- master
15+
- 'rel/*'
16+
- 'rc/*'
17+
paths-ignore:
18+
- 'docs/**'
19+
- 'site/**'
20+
# allow manually run the action:
21+
workflow_dispatch:
22+
23+
jobs:
24+
check-style:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Set up Python 3.10
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.10"
34+
35+
- name: Install dependencies
36+
run: |
37+
cd iotdb-core/ainode
38+
poetry install
39+
40+
- name: Check code formatting (Black)
41+
run: |
42+
cd iotdb-core/ainode
43+
black --check .
44+
continue-on-error: false
45+
46+
- name: Check import order (Isort)
47+
run: |
48+
cd iotdb-core/ainode
49+
isort --check-only --profile black .
50+
continue-on-error: false

0 commit comments

Comments
 (0)