

ci: add lint action
@d033c5fa7bf858dfc67b90ca7128a26da518f265
--- .github/workflows/docker-build-and-push.yaml
+++ .github/workflows/docker-build-and-push.yaml
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 |
IMAGE_NAME: fedirz/faster-whisper-server |
11 | 11 |
jobs: |
12 | 12 |
docker: |
13 |
- runs-on: ubuntu-22.04 |
|
13 |
+ runs-on: ubuntu-latest |
|
14 | 14 |
strategy: |
15 | 15 |
matrix: |
16 | 16 |
dockerfile: [Dockerfile.cuda, Dockerfile.cpu] |
+++ .github/workflows/lint.yaml
... | ... | @@ -0,0 +1,19 @@ |
1 | +name: lint | |
2 | +on: | |
3 | + workflow_dispatch: | |
4 | + push: | |
5 | + branches: | |
6 | + - master | |
7 | + pull_request: | |
8 | +jobs: | |
9 | + ruff: | |
10 | + runs-on: ubuntu-latest | |
11 | + steps: | |
12 | + - uses: actions/checkout@v4 | |
13 | + - uses: actions/setup-python@v5 | |
14 | + with: | |
15 | + python-version: 3.12 | |
16 | + - run: pip install uv | |
17 | + - run: uv pip install --system -r requirements-dev.txt | |
18 | + - run: ruff check . | |
19 | + - run: ruff format --check --diff . |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?