Skip to content

Commit 0cda4f2

Browse files
committed
Update policyengine-core dependency and fix CI for Python 3.13
- Bump policyengine-core to >=3.19.0 for Python 3.13 support - Update all GitHub Actions to latest versions (checkout@v4, setup-python@v5) - Set all workflows to use Python 3.13 - These updates should fix the CI failures related to Python 3.13 compatibility
1 parent 95a0172 commit 0cda4f2

7 files changed

Lines changed: 20 additions & 17 deletions

File tree

.github/workflows/code_changes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
id-token: "write"
2828
steps:
2929
- name: Checkout repo
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v4
3131
- name: Install uv
3232
uses: astral-sh/setup-uv@v5
3333

3434
- name: Set up Python
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v5
3636
with:
3737
python-version: '3.13'
3838
- uses: "google-github-actions/auth@v2"
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
5353
- name: Upload coverage to Codecov
54-
uses: codecov/codecov-action@v3
54+
uses: codecov/codecov-action@v4
5555
with:
5656
file: ./coverage.xml
5757
fail_ci_if_error: false

.github/workflows/docs_changes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repo
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919
- name: Install uv
2020
uses: astral-sh/setup-uv@v5
2121

2222
- name: Set up Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.12'
25+
python-version: '3.13'
2626

2727
- name: Install package
2828
run: uv pip install -e .[dev] --system

.github/workflows/pr_code_changes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
id-token: "write"
2828
steps:
2929
- name: Checkout repo
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v4
3131
- name: Install uv
3232
uses: astral-sh/setup-uv@v5
3333

3434
- name: Set up Python
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v5
3636
with:
3737
python-version: '3.13'
3838
- uses: "google-github-actions/auth@v2"
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN }}
5353
- name: Upload coverage to Codecov
54-
uses: codecov/codecov-action@v3
54+
uses: codecov/codecov-action@v4
5555
with:
5656
file: ./coverage.xml
5757
fail_ci_if_error: false

.github/workflows/pr_docs_changes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
name: Test documentation builds
1717
steps:
1818
- name: Checkout repo
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020
- name: Install uv
2121
uses: astral-sh/setup-uv@v5
2222

2323
- name: Set up Python
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v5
2525
with:
26-
python-version: '3.12'
26+
python-version: '3.13'
2727

2828
- name: Install package
2929
run: uv pip install -e .[dev] --system

.github/workflows/versioning.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ jobs:
4141
GH_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }}
4242
steps:
4343
- name: Checkout repo
44-
uses: actions/checkout@v2
44+
uses: actions/checkout@v4
4545
- name: Install uv
4646
uses: astral-sh/setup-uv@v5
4747

4848
- name: Set up Python
49-
uses: actions/setup-python@v2
49+
uses: actions/setup-python@v5
5050
with:
51-
python-version: '3.12'
51+
python-version: '3.13'
5252
- name: Install package
5353
run: uv pip install -e .[dev] --system
5454
- name: Install policyengine

changelog_entry.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
- bump: patch
22
changes:
33
changed:
4-
- Add Python 3.13 support and update CI workflows
4+
- Add Python 3.13 support and update CI workflows
5+
- Updated policyengine-core dependency to >=3.19.0 for Python 3.13 support
6+
- Updated GitHub Actions to latest versions (checkout@v4, setup-python@v5) for Python 3.13 compatibility
7+
- Set all workflows to use Python 3.13

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers = [
2424
]
2525
requires-python = ">=3.10"
2626
dependencies = [
27-
"policyengine-core>=3.6.4",
27+
"policyengine-core>=3.19.0",
2828
"microdf-python>=1.0.0",
2929
]
3030

0 commit comments

Comments
 (0)