diff --git a/.github/workflows/pr-review.yml b/.github/workflows/pr-review.yml new file mode 100644 index 0000000..112ceec --- /dev/null +++ b/.github/workflows/pr-review.yml @@ -0,0 +1,21 @@ +name: Pull Request Validation +on: + pull_request: + branches: [main] + workflow_dispatch: +permissions: + contents: read + pull-requests: write +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v6 + - uses: actions/setup-python@v5 + with: + python-version-file: .python-version + - run: uv sync --group dev + - run: uv run ruff check . + - run: uv run pyright + - run: uv run pytest -q