Skip to content

Commit 7d71024

Browse files
erichutchinsclaude
andcommitted
ci: drop Python 3.9, remove min-versions job, fix docs workflow for mkdocstrings
- Remove "3.9" from test matrix (requires-python = ">=3.10") - Remove min-versions-test job that tested against Python 3.9 - Update build job needs to remove min-versions-test dependency - Switch docs.yml from bare pip to uv --group docs so mkdocstrings is installed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3ce7dd3 commit 7d71024

2 files changed

Lines changed: 12 additions & 47 deletions

File tree

.github/workflows/docs.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: ci
1+
name: ci
22
on:
33
push:
44
branches:
5-
- master
5+
- master
66
- main
77
permissions:
88
contents: write
@@ -15,15 +15,16 @@ jobs:
1515
run: |
1616
git config user.name github-actions[bot]
1717
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18-
- uses: actions/setup-python@v5
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
1920
with:
20-
python-version: 3.x
21-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21+
python-version: "3.12"
22+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2223
- uses: actions/cache@v4
2324
with:
2425
key: mkdocs-material-${{ env.cache_id }}
2526
path: .cache
2627
restore-keys: |
2728
mkdocs-material-
28-
- run: pip install mkdocs-material
29-
- run: mkdocs gh-deploy --force
29+
- run: uv sync --group docs
30+
- run: uv run mkdocs gh-deploy --force

.github/workflows/publish_to_pypi.yml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
python-version:
33-
- "3.9"
3433
- "3.10"
3534
- "3.11"
3635
- "3.12"
@@ -64,41 +63,6 @@ jobs:
6463
- name: Run tests
6564
run: uv run pytest tests -v
6665

67-
# ------------------------------------------------------------------
68-
# Minimum version test (py3.9 + polars 1.3)
69-
# ------------------------------------------------------------------
70-
min-versions-test:
71-
name: Test Min Versions (Python 3.9)
72-
runs-on: ubuntu-latest
73-
needs: test-python
74-
steps:
75-
- uses: actions/checkout@v4
76-
77-
- name: Set up Rust stable toolchain
78-
uses: dtolnay/rust-toolchain@stable
79-
80-
- name: Rust Cache
81-
uses: swatinem/rust-cache@v2
82-
83-
- name: Install uv and Python
84-
uses: astral-sh/setup-uv@v5
85-
with:
86-
python-version: "3.9"
87-
88-
- name: Install with minimum dependencies
89-
run: |
90-
uv sync --group dev
91-
uv lock --upgrade-package polars==1.3.0
92-
93-
- run: uv pip install -e .
94-
env:
95-
RUST_BACKTRACE: 1
96-
97-
- run: uv pip freeze
98-
99-
- name: Run tests with minimum versions
100-
run: uv run pytest tests -v
101-
10266
# ------------------------------------------------------------------
10367
# Test different operating systems
10468
# ------------------------------------------------------------------
@@ -139,7 +103,7 @@ jobs:
139103
# ------------------------------------------------------------------
140104
build-linux:
141105
name: Build Wheels (${{ matrix.os }}, ${{ matrix.target }})
142-
needs: [test-python, test-os, min-versions-test]
106+
needs: [test-python, test-os]
143107
runs-on: ${{ matrix.platform.runner }}
144108

145109
strategy:
@@ -176,7 +140,7 @@ jobs:
176140

177141
build-musllinux:
178142
name: Build Wheels (${{ matrix.os }}, ${{ matrix.target }})
179-
needs: [test-python, test-os, min-versions-test]
143+
needs: [test-python, test-os]
180144
runs-on: ${{ matrix.platform.runner }}
181145

182146
strategy:
@@ -212,7 +176,7 @@ jobs:
212176

213177
build-windows:
214178
name: Build Wheels (${{ matrix.os }}, ${{ matrix.target }})
215-
needs: [test-python, test-os, min-versions-test]
179+
needs: [test-python, test-os]
216180
runs-on: ${{ matrix.platform.runner }}
217181

218182
strategy:
@@ -246,7 +210,7 @@ jobs:
246210

247211
build-macos:
248212
name: Build Wheels (${{ matrix.os }}, ${{ matrix.target }})
249-
needs: [test-python, test-os, min-versions-test]
213+
needs: [test-python, test-os]
250214
runs-on: ${{ matrix.platform.runner }}
251215

252216
strategy:

0 commit comments

Comments
 (0)