From c8a6e9d537d067e2b4874b3ad8e2f19217f782d6 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 07:40:27 -0400 Subject: [PATCH 1/5] Update GitHub Actions for Node 24 runtime --- .github/workflows/pr.yaml | 6 +++--- .github/workflows/push.yaml | 26 +++++++++++++------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index d331a1a..23b5053 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 ${{ matrix.python-version }} - 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 17613d2..0f85b21 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,21 +55,21 @@ 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 - name: Generate documentation run: make documentation - name: Deploy documentation if: matrix.os == 'ubuntu-latest' - uses: JamesIves/github-pages-deploy-action@releases/v3 + uses: JamesIves/github-pages-deploy-action@v4 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages @@ -81,9 +81,9 @@ jobs: && (github.event.head_commit.message == 'Update PolicyEngine Israel') 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 @@ -106,16 +106,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 1e844964225fca818d94847a447bb8b046afbdaa Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 10:12:53 -0400 Subject: [PATCH 2/5] Fix CI warnings and changelog checks --- changelog.d/update-actions-node24.changed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/update-actions-node24.changed.md diff --git a/changelog.d/update-actions-node24.changed.md b/changelog.d/update-actions-node24.changed.md new file mode 100644 index 0000000..b0038fe --- /dev/null +++ b/changelog.d/update-actions-node24.changed.md @@ -0,0 +1 @@ +Updated GitHub Actions workflows for Node 24-compatible action runtimes. From 787e68b91b1c9c4ac43f27ff15402fb630adaecc Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 12:15:56 -0400 Subject: [PATCH 3/5] 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 23b5053..c925bb0 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 d07408ef473e9928a9a5f0cf39654cdf4dab8868 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 12:28:19 -0400 Subject: [PATCH 4/5] Pin numpy below 2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c31f8cc..f803b56 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 b828e6b0ec009fada6d979964cbd41eb65acc0af Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sun, 26 Apr 2026 12:31:39 -0400 Subject: [PATCH 5/5] Constrain core dependency resolution --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f803b56..7a51d7c 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]