diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..41050f3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + pull_request: + push: + branches: [master] + +permissions: + contents: read + +jobs: + check: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python: ["3.13", "3.14"] + steps: + - uses: actions/checkout@v7 + - uses: astral-sh/setup-uv@v10.3.2 + with: + python-version: ${{ matrix.python }} + enable-cache: true + - run: uv sync --all-extras --locked + - run: uv run ruff check + - run: uv run ruff format --check + - run: uv run ty check + - run: uv run pytest + - run: uv build diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 35973da..14e54d1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,7 @@ uv run ty check uv run pytest ``` -All four must be clean. +All four must be clean. CI runs them, and `uv build`, on Python 3.13 and 3.14 for every pull request. ## Pull requests