From e427f477c1b03d1cd6f41b9fe234dea92727c743 Mon Sep 17 00:00:00 2001 From: Zach Kurtz Date: Sat, 23 Nov 2024 14:26:08 -0500 Subject: [PATCH] include 3.10 in CI --- .github/workflows/ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55d868a..87be790 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,22 +3,30 @@ name: CI on: pull_request: branches: [ main ] - push: - branches: [ main ] jobs: build: name: continuous-integration runs-on: ubuntu-latest - + strategy: + matrix: + python-version: ['3.10', '3.12'] steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Set the python version for UV + run: echo "UV_PYTHON=${{ matrix.python-version }}" >> $GITHUB_ENV + - name: Set up uv run: pip install uv - name: Check code quality with Ruff - run: uv run ruff check . + run: | + uv run ruff check + uv run ruff format --check - name: Check type hints with pyright run: uv run pyright