forked from flagos-ai/vllm-plugin-FL
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 915 Bytes
/
Copy path_lint.yml
File metadata and controls
40 lines (33 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Lint
on:
workflow_call:
workflow_dispatch:
jobs:
lint:
name: Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout (attempt 1)
id: checkout1
uses: actions/checkout@v4
continue-on-error: true
- name: Checkout (attempt 2)
id: checkout2
if: steps.checkout1.outcome == 'failure'
uses: actions/checkout@v4
continue-on-error: true
- name: Checkout (attempt 3)
if: steps.checkout2.outcome == 'failure'
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ruff
run: pip install ruff
- name: Ruff check
run: ruff check --output-format=github .
- name: Ruff format check
run: ruff format --check .
- name: Typos check
uses: crate-ci/typos@v1