-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (60 loc) · 1.62 KB
/
Copy pathci.yml
File metadata and controls
65 lines (60 loc) · 1.62 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
59
60
61
62
63
64
65
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
version: "latest"
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install dependencies
working-directory: operations-manager/python
run: uv sync
- uses: pre-commit/action@v3.0.1
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: operations-manager/python
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
version: "latest"
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install dependencies
run: uv sync --all-groups
- name: Run tests with coverage
run: uv run coverage run --source=opi -m pytest tests/ -v -m "not slow and not e2e and not requires_infra and not sandbox" --tb=short
- name: Coverage report
run: uv run coverage report --fail-under=21
license-check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: operations-manager/python
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
version: "latest"
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install dependencies
run: |
uv sync --all-groups
uv pip install pip
- name: License check
run: uv run liccheck -s pyproject.toml