ci-python.yml (720B)
1 name: CI (Python) 2 3 on: 4 push: 5 branches: [main] 6 paths: ["python/**"] 7 pull_request: 8 branches: [main] 9 paths: ["python/**"] 10 11 jobs: 12 test: 13 runs-on: ubuntu-latest 14 strategy: 15 matrix: 16 python-version: ["3.10", "3.11", "3.12"] 17 defaults: 18 run: 19 working-directory: python 20 steps: 21 - uses: actions/checkout@v4 22 23 - uses: astral-sh/setup-uv@v5 24 25 - name: Set up Python ${{ matrix.python-version }} 26 run: uv python install ${{ matrix.python-version }} 27 28 - name: Install dependencies 29 run: uv sync --python ${{ matrix.python-version }} 30 31 - name: Lint 32 run: uv run ruff check src tests 33 34 - name: Test 35 run: uv run pytest