Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
push:
branches: [ main ]
pull_request:

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

# Also installs the Python version pinned in .python-version.
- name: Install dependencies
run: uv sync --all-extras --dev

- name: make check
run: make check
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Convenience targets for local dev and CI.
# Scoped to deploy_gcp; deploy_tee will be added once its checks are clean.

PKG := deploy_gcp

.PHONY: help lint format format-check typecheck check

help:
@echo "Targets:"
@echo " check lint + format-check + typecheck (what CI runs)"
@echo " lint ruff check"
@echo " format ruff format (writes changes)"
@echo " format-check ruff format --check"
@echo " typecheck ty check"

check: lint format-check typecheck

lint:
uv run ruff check $(PKG)

format:
uv run ruff format $(PKG)

format-check:
uv run ruff format --check $(PKG)

typecheck:
uv run ty check $(PKG)
Loading
Loading