-
Notifications
You must be signed in to change notification settings - Fork 1
25 lines (23 loc) · 851 Bytes
/
Copy pathchecks.yml
File metadata and controls
25 lines (23 loc) · 851 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
name: Checks
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
lint-and-typecheck:
runs-on: ubuntu-latest
env:
PYTHONPATH: packages/ctidy/src:packages/cformat/src:.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v6
- run: uv sync --locked --only-group dev --no-install-project
- run: .venv/bin/python -m compileall packages/ctidy/src packages/cformat/src tools cppllvm_build.py packages/ctidy/build_hooks.py packages/ctidy/setup.py packages/cformat/build_hooks.py packages/cformat/setup.py
- run: PYTHONPATH=packages/ctidy/src:packages/cformat/src:. .venv/bin/python -m unittest discover -s tests
- run: .venv/bin/ruff check .
- run: .venv/bin/ty check .