-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 1.89 KB
/
continuous_integration.yaml
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
59
60
61
62
63
64
65
66
67
68
name: Continous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- ".github/workflows/**"
- "*.py"
- "pyproject.toml"
- "uv.lock"
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
name: Checkout
- name: Install uv
uses: astral-sh/setup-uv@a7e15805d229f8677c5ddf08590a8cb972658599
with:
cache-dependency-glob: "uv.lock"
enable-cache: true
version: "0.5.1"
- name: Set up Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync --locked --no-group dev --group lint
- name: Check code format with Ruff
run: make check-format
- name: Lint code with Ruff
run: make check-lint
- name: Check types with Mypy
run: make check-types
test:
name: Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
name: Checkout
- name: Install uv
uses: astral-sh/setup-uv@a7e15805d229f8677c5ddf08590a8cb972658599
with:
cache-dependency-glob: "uv.lock"
enable-cache: true
version: "0.5.1"
- name: Set up Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync --locked --no-group dev --group test
- name: Run tests with pytest
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
token: ${{ secrets.CODECOV_TOKEN }}