mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-11 21:18:36 +03:00
ci: enable github actions
This commit is contained in:
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -9,13 +9,14 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
python-version: '3.10'
|
||||
cache: 'pip'
|
||||
- pip install -e .[dev]
|
||||
- black --check app
|
||||
- isort --check app
|
||||
- flake8 app
|
||||
- mypy app
|
||||
cache-dependency-path: '**/pyproject.toml'
|
||||
- run: pip install -e .[web,tooling]
|
||||
- run: black --check app
|
||||
- run: isort --check app
|
||||
- run: flake8 app
|
||||
- run: mypy app
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test
|
||||
@@ -23,7 +24,8 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
python-version: '3.10'
|
||||
cache: 'pip'
|
||||
- pip install -e .[test]
|
||||
- pytest
|
||||
cache-dependency-path: '**/pyproject.toml'
|
||||
- run: pip install -e .[web,tooling]
|
||||
- run: pytest
|
||||
|
||||
Reference in New Issue
Block a user