Skip to content

Commit f2177b6

Browse files
committed
Separate lint on CI
1 parent e2e9883 commit f2177b6

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/pythontest.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ name: Python testing
33
on: [push, pull_request]
44

55
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python
11+
uses: actions/setup-python@v6
12+
with:
13+
python-version: "3.12"
14+
- name: Install dependencies
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install ".[dev]"
18+
- name: lint with ruff
19+
run: |
20+
ruff format tdclient --diff --exit-non-zero-on-fix
21+
ruff check tdclient
22+
- name: Run pyright
23+
run: |
24+
pyright tdclient
25+
626
test:
727
runs-on: ${{ matrix.os }}
828
strategy:
@@ -23,13 +43,6 @@ jobs:
2343
pip install ".[dev]"
2444
pip install -r requirements.txt -r test-requirements.txt
2545
pip install -U coveralls pyyaml
26-
- name: lint with ruff
27-
run: |
28-
ruff format tdclient --diff --exit-non-zero-on-fix
29-
ruff check tdclient tests
30-
- name: Run pyright
31-
run: |
32-
pyright tdclient
3346
- name: Run test
3447
run: |
3548
coverage run --source=tdclient -m pytest tdclient/test

0 commit comments

Comments
 (0)