From 3aea584fb7bcb4096d90da6aa4835dbd63372f4c Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 07:40:36 -0400 Subject: [PATCH 1/4] Update GitHub Actions for Node 24 runtime --- .github/workflows/pr.yaml | 6 +++--- .github/workflows/push.yaml | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 2342528..f062cbd 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,9 +15,9 @@ jobs: python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} allow-prereleases: true @@ -25,6 +25,6 @@ jobs: run: make install - name: Run tests run: make test - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v6 - name: Build package run: make build diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index a05e1db..f02018d 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -17,16 +17,16 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@v3 with: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.APP_PRIVATE_KEY }} - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: token: ${{ steps.app-token.outputs.token }} - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.14" - name: Build changelog @@ -37,7 +37,7 @@ jobs: - name: Preview changelog update run: ".github/get-changelog-diff.sh" - name: Update changelog - uses: EndBug/add-and-commit@v9 + uses: EndBug/add-and-commit@v10 with: add: "." committer_name: Github Actions[bot] @@ -55,16 +55,16 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.14" - name: Install package run: make install - name: Run tests run: make test - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v6 Publish: runs-on: ubuntu-latest if: | @@ -72,9 +72,9 @@ jobs: && (github.event.head_commit.message == 'Update PolicyEngine Nigeria') steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.14" - name: Publish a git tag @@ -97,16 +97,16 @@ jobs: steps: - name: Generate GitHub App token id: app-token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@v3 with: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.APP_PRIVATE_KEY }} - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: token: ${{ steps.app-token.outputs.token }} - name: Setup Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: "3.14" - name: Install Wheel and Pytest From 32d420293c2966eee3839781cbfdc4e644920594 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 12:15:56 -0400 Subject: [PATCH 2/4] Fix CI dependency resolution --- .github/workflows/pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index f062cbd..2a7fef6 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11"] steps: - name: Checkout repo uses: actions/checkout@v6 From e64d0c06e4cb0a9136e60e96c35275f7afe12903 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 12:28:19 -0400 Subject: [PATCH 3/4] Pin numpy below 2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 24c733a..55f2e87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ classifiers = [ "Topic :: Scientific/Engineering :: Information Analysis", ] dependencies = [ - "numpy", + "numpy>=1.26,<2", "policyengine-core", ] From fb1c0e971cc5b84fffa6ad5ad860fe90e8f687c9 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 12:31:39 -0400 Subject: [PATCH 4/4] Constrain core dependency resolution --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 55f2e87..b3d6a86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,8 +18,8 @@ classifiers = [ "Topic :: Scientific/Engineering :: Information Analysis", ] dependencies = [ - "numpy>=1.26,<2", - "policyengine-core", + "numpy>=2.1,<3", + "policyengine-core>=3.25,<4", ] [project.optional-dependencies]