Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,34 @@ jobs:
run: |
echo "Running structural YAML tests (contrib excl states)..."
uv run make test-yaml-structural

Pandas-Compatibility:
name: Pandas ${{ matrix.pandas-version }} Compatibility
runs-on: ubuntu-latest
strategy:
matrix:
pandas-version: ["2", "3"]
fail-fast: false
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: uv sync --extra dev
- name: Install pandas ${{ matrix.pandas-version }}
run: |
if [ "${{ matrix.pandas-version }}" = "2" ]; then
uv pip install "pandas>=2,<3" --system
else
uv pip install "pandas>=3,<4" --system
fi
- name: Turn off default branching
shell: bash
run: ./update_itemization.sh
- name: Run pandas compatibility tests
run: uv run pytest policyengine_us/tests/core/test_pandas3_compatibility.py -v
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: patch
changes:
added:
- Added pandas 2 and 3 CI compatibility testing to ensure both major versions work.