Skip to content

Commit 9091e54

Browse files
committed
chore: upgrade ci
1 parent e4da167 commit 9091e54

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,19 @@ jobs:
2424
pip install --upgrade setuptools
2525
poetry env use "3.12"
2626
poetry install
27-
- name: Run Lints
27+
- name: Setup reviewdog
28+
uses: reviewdog/action-setup@latest
29+
- name: Run black
30+
env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: |
32+
poetry run black nodestream_github tests --check --diff --quiet | reviewdog -f=diff -name="black-check" -level=error -reporter=github-pr-check
33+
- name: Run isort
2834
run: |
29-
poetry run black nodestream_github tests --check
3035
poetry run isort nodestream_github tests --check-only
31-
poetry run ruff check nodestream_github tests
36+
- name: Run Lint
37+
env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: |
39+
poetry run ruff check nodestream_github tests --output-format rdjson | reviewdog -f=rdjson -name="ruff-check" -level=warning -reporter=github-pr-check
3240
- name: Run Tests
3341
run: |
3442
poetry run pytest

0 commit comments

Comments
 (0)