-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (40 loc) · 1.18 KB
/
ci.yml
File metadata and controls
53 lines (40 loc) · 1.18 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: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: blacksmith-2vcpu-ubuntu-2404-arm
timeout-minutes: 10
steps:
- uses: useblacksmith/checkout@v1
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
- name: Set up Python
run: uv python install 3.12
- uses: actions/cache@v5
with:
path: |
~/.cache/uv
~/.local/share/uv
key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
restore-keys: ${{ runner.os }}-uv-
- name: Install dependencies
run: uv sync --frozen --all-extras
- name: Ruff check
run: uv run ruff check .
- name: Ruff format check
run: uv run ruff format --check .
- name: Type check (ty)
run: uv run ty check agentscore_commerce/
- name: Vulture
run: uv run vulture agentscore_commerce/ vulture_whitelist.py --min-confidence 80
- name: Tests
run: uv run pytest tests/ -v --cov=agentscore_commerce --cov-report=term-missing