Skip to content

Commit b1b2878

Browse files
committed
CI: Matrix on supported Python versions
1 parent 09902a0 commit b1b2878

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ on:
1010
jobs:
1111
lint:
1212
name: Run linting and format
13+
strategy:
14+
matrix:
15+
# Only test a subset of python versions, to limit compute
16+
python: [python3.9, python3.11, python3.13]
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: actions/checkout@v4
1620
- uses: astral-sh/setup-uv@v6
17-
- run: uv python install python3.13
21+
- run: uv python install ${{ matrix.python }}
1822
- run: uv run ruff check src/obelisk/
1923
- run: uv run ruff format --check src/obelisk/
2024
- run: uv run mypy src/obelisk/
@@ -23,9 +27,11 @@ jobs:
2327
strategy:
2428
matrix:
2529
os: [ubuntu-latest, macos-latest, windows-latest]
30+
# Only test a subset of python versions, to limit compute
31+
python: [python3.9, python3.11, python3.13]
2632
runs-on: ${{ matrix.os }}
2733
steps:
2834
- uses: actions/checkout@v4
2935
- uses: astral-sh/setup-uv@v6
30-
- run: uv python install python3.13
36+
- run: uv python install ${{ matrix.python }}
3137
- run: uv run pytest

0 commit comments

Comments
 (0)