-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.2 KB
/
Copy pathpython-checks.yml
File metadata and controls
58 lines (45 loc) · 1.2 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: python-checks
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Clone git repository
uses: actions/checkout@v6
- name: Install python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Install UV
uses: astral-sh/setup-uv@v5
with:
pyproject-file: "pyproject.toml"
- name: Install dependencies
run: uv sync --dev
- name: Run black
run: uv run black ./
- name: Run mypy app
run: uv run mypy app
- name: Run mypy media-service
run: uv run mypy media-service
- name: Run mypy notification-service
run: uv run mypy notification-service
- name: Run mypy packages
run: uv run mypy packages
- name: Run ruff
run: uv run ruff check --fix
testing:
needs:
- lint
runs-on: ubuntu-latest
steps:
- name: Clone git repository
uses: actions/checkout@v6
- name: Run tests
run: docker compose -f docker-compose.test.yml up --build --abort-on-container-exit --exit-code-from tests