forked from excelsier/things-fastmcp
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (30 loc) · 853 Bytes
/
Copy pathtests.yml
File metadata and controls
39 lines (30 loc) · 853 Bytes
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
# CI: lint and run tests (CI-safe; Things 3 not available in CI)
name: Tests
on:
push:
branches: [source]
pull_request:
branches: [source]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install dependencies
run: uv sync --group dev
- name: Security audit (pip-audit)
run: uvx pip-audit
- name: Ruff check
run: uv run ruff check .
- name: Ruff format (check only)
run: uv run ruff format --check .
- name: Pytest (CI-safe, excludes real/Things 3 tests)
run: uv run python -m pytest tests -v