forked from huangruiteng/loopx
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (57 loc) · 1.44 KB
/
Copy pathpython-tests.yml
File metadata and controls
67 lines (57 loc) · 1.44 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
66
67
name: Python Tests
on:
pull_request:
paths:
- ".github/workflows/python-tests.yml"
- "loopx/**"
- "tests/**"
- "examples/**"
- "pyproject.toml"
push:
branches:
- main
paths:
- ".github/workflows/python-tests.yml"
- "loopx/**"
- "tests/**"
- "examples/**"
- "pyproject.toml"
permissions:
contents: read
concurrency:
group: python-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: pip
- name: Install test dependencies
run: python -m pip install --disable-pip-version-check -e ".[test]"
- name: Lint test suite
run: >-
python -m ruff check
tests
loopx/canary
loopx/control_plane
loopx/domain_packs
loopx/presentation
- name: Type-check kernel contracts
run: python -m mypy
- name: Qualify agent-facing CLI output
run: python examples/control_plane/cli-output-budget-regression-smoke.py
- name: Run fast tests
run: >-
python -m pytest -q -n 2
--cov=loopx
--cov-report=term
--cov-fail-under=19.6