Fedir Zadniprovskyi commited on
Commit
e54c9d1
·
1 Parent(s): 777d33c

ci: add lint action

Browse files
.github/workflows/docker-build-and-push.yaml CHANGED
@@ -10,7 +10,7 @@ env:
10
  IMAGE_NAME: fedirz/faster-whisper-server
11
  jobs:
12
  docker:
13
- runs-on: ubuntu-22.04
14
  strategy:
15
  matrix:
16
  dockerfile: [Dockerfile.cuda, Dockerfile.cpu]
 
10
  IMAGE_NAME: fedirz/faster-whisper-server
11
  jobs:
12
  docker:
13
+ runs-on: ubuntu-latest
14
  strategy:
15
  matrix:
16
  dockerfile: [Dockerfile.cuda, Dockerfile.cpu]
.github/workflows/lint.yaml ADDED
@@ -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 .