-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.07 KB
/
python-ci.yml
File metadata and controls
53 lines (42 loc) · 1.07 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
name: Python CI
on:
push:
branches: [migration]
paths:
- 'src/**'
- 'tests/**'
- 'pyproject.toml'
- '.github/workflows/python-ci.yml'
pull_request:
branches: [main, develop, migration]
paths:
- 'src/**'
- 'tests/**'
- 'pyproject.toml'
- '.github/workflows/python-ci.yml'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.14
- name: Install dependencies
run: uv sync --all-extras
- name: Run ruff linting
run: uv run ruff check .
- name: Run ruff formatting check
run: uv run ruff format --check .
- name: Run type checking with ty
run: uv run ty check src/
- name: Run tests
run: uv run pytest -m "not slow and not integration" --cov --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: python