-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.11 KB
/
lint.yml
File metadata and controls
43 lines (33 loc) · 1.11 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
name: Linting
# Disabled: requires checkout of private makegov/tango repo for filter_shape conformance check.
# Re-enable when that repo is accessible (e.g. add TANGO_API_REPO_ACCESS_TOKEN secret).
on:
workflow_dispatch:
# push:
# branches: [ main, develop ]
# pull_request:
# branches: [ main, develop ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout tango API repo (manifest source)
uses: actions/checkout@v4
with:
repository: makegov/tango
path: tango-api
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --all-extras
- name: Check formatting with ruff
run: uv run ruff format --check tango/
- name: Lint with ruff
run: uv run ruff check tango/
- name: Check SDK filter/shape conformance
run: uv run python scripts/check_filter_shape_conformance.py --manifest tango-api/contracts/filter_shape_contract.json