Skip to content

Commit a13ac07

Browse files
committed
Enable CI linter for node-hub python projects
1 parent 491c866 commit a13ac07

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/node-hub-ci-cd.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,34 @@ jobs:
1818
outputs:
1919
folders: ${{ steps.jobs.outputs.folders }}
2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v4
2222

2323
- id: jobs
2424
uses: kmanimaran/list-folder-action@v4
2525
with:
2626
path: ./node-hub
27+
28+
lint:
29+
runs-on: ubuntu-24.04
30+
needs: [find-jobs]
31+
name: Lint
32+
strategy:
33+
fail-fast: ${{ github.event_name != 'workflow_dispatch' && !(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')) }}
34+
matrix:
35+
folder: ${{ fromJson(needs.find-jobs.outputs.folders )}}
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Install the latest version of uv
40+
uses: astral-sh/setup-uv@v5
41+
with:
42+
enable-cache: true
43+
44+
- name: Run linting
45+
working-directory: node-hub/${{ matrix.folder }}
46+
run: |
47+
uv tool install ruff
48+
ruff check .
2749
2850
ci:
2951
runs-on: ${{ matrix.platform }}

0 commit comments

Comments
 (0)