diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bec5b0b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + pull_request: + +permissions: + contents: read + +jobs: + ci: + # Only run for PRs raised from branches in this repository, not from forks. + if: github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + + - name: Run CI + run: make ci diff --git a/Makefile b/Makefile index a437e06..bd94ae9 100644 --- a/Makefile +++ b/Makefile @@ -30,12 +30,12 @@ run: # Contribute format: - poetry run ruff check --fix . - poetry run ruff format . + uv run ruff check --fix . + uv run ruff format . lint: - poetry run ruff check src - poetry run ruff format --check + uv run ruff check src + uv run ruff format --check typecheck: uv run pyright