Skip to content
Merged
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
12 changes: 7 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check formatting
uses: "lgeiger/black-action@master"
with:
Expand All @@ -30,20 +30,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.14"]
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.13
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install build dependencies
run: pip install wheel setuptools
- name: Install package
run: make install
- name: Run tests
run: make test
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
- name: Build package
run: make build
- name: Test documentation builds
Expand Down
34 changes: 19 additions & 15 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
(github.repository == 'PolicyEngine/policyengine-canada')
&& (github.event.head_commit.message == 'Update PolicyEngine Canada')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check formatting
uses: "lgeiger/black-action@master"
with:
Expand All @@ -22,12 +22,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with: token: ${{ secrets.POLICYENGINE_GITHUB }}
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.13
python-version: "3.14"
allow-prereleases: true
- name: Build changelog
run: |
pip install towncrier
Expand All @@ -52,16 +53,17 @@ jobs:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.13
python-version: "3.14"
allow-prereleases: true
- name: Install package
run: make install
- name: Run tests
run: make test
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
- name: Generate documentation
run: make documentation
- name: Deploy documentation
Expand All @@ -78,11 +80,12 @@ jobs:
&& (github.event.head_commit.message == 'Update PolicyEngine Canada')
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.13
python-version: "3.14"
allow-prereleases: true
- name: Publish a git tag
run: ".github/publish-git-tag.sh || true"
- name: Install build dependencies
Expand All @@ -106,17 +109,18 @@ jobs:
GH_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with: token: ${{ secrets.POLICYENGINE_GITHUB }}
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: "3.14"
allow-prereleases: true
- name: Install Wheel and Pytest
run: pip3 install wheel setuptools pytest==5.4.3
- name: Install package
run: make install
- name: Update API
run: python .github/update_api.py
env:
GITHUB_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }}
GITHUB_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }}
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.14
1 change: 1 addition & 0 deletions changelog.d/upgrade-python-3.14.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Python 3.14 support, drop Python 3.10.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ readme = "README.md"
authors = [
{ name = "PolicyEngine", email = "hello@policyengine.org" }
]
requires-python = ">=3.10"
requires-python = ">=3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
Expand Down
Loading