Skip to content

Commit 2ecf6d1

Browse files
committed
ci: add tests for many Polars versions
1 parent fa9db44 commit 2ecf6d1

2 files changed

Lines changed: 35 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ jobs:
1616
matrix:
1717
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
1818
python-version: ["3.11", "3.12", "3.13"]
19+
include:
20+
# Methodology: Use Ubuntu for basically everything, then target
21+
# specific cases for the OSes and Python versions.
22+
- os: macos-latest
23+
python-version: "3.12"
24+
- os: windows-latest
25+
python-version: "3.12"
26+
27+
# Polars version tests (Python 3.12 only).
28+
- python-version: "3.12"
29+
polars-version: "0.20"
30+
- python-version: "3.12"
31+
polars-version: "1.20"
32+
- python-version: "3.12"
33+
polars-version: "1.30"
34+
- python-version: "3.12"
35+
polars-version: "1.31"
1936

2037
runs-on: ${{ matrix.os }}
2138

@@ -32,8 +49,15 @@ jobs:
3249
- name: Set up Python
3350
run: uv python install
3451

35-
- name: Install all dependencies
36-
run: uv sync --all-extras
52+
- name: Install dependencies
53+
run: |
54+
if [ -n "${{ matrix.polars-version || '' }}" ]; then
55+
echo "Overriding Polars version to ${{ matrix.polars-version }}"
56+
uv lock --upgrade-package polars==${{ matrix.polars-version }}
57+
uv sync --all-extras
58+
else
59+
uv sync --all-extras
60+
fi
3761
3862
- name: Run linting
3963
run: |

uv.lock

Lines changed: 9 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)