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