Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Bump pre to Python 3.13, standard to 3.12 #248

Merged
merged 2 commits into from
Nov 20, 2024
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
4 changes: 2 additions & 2 deletions .github/actions/base-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ runs:

# Handle default python value based on dependency type.
if [ $DEPENDENCY_TYPE == "pre" ]; then
DEFAULT_PYTHON="3.12"
DEFAULT_PYTHON="3.13"
elif [ $DEPENDENCY_TYPE == "minimum" ]; then
DEFAULT_PYTHON="3.8"
elif [ $DEPENDENCY_TYPE != "standard" ]; then
echo "Unrecognized dependency type $DEPENDENCY_TYPE"
exit 1
else
DEFAULT_PYTHON="3.11"
DEFAULT_PYTHON="3.12"
fi

echo "DEFAULT_PYTHON is $DEFAULT_PYTHON"
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/report-coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ runs:
- uses: actions/setup-python@v5
with:
# Use latest Python, so it understands all syntax.
python-version: "3.12"
python-version: "3.13"
allow-prereleases: true

- run: python -Im pip install --upgrade coverage[toml]
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.11"]
python-version: ["3.8", "3.12"]
include:
- os: ubuntu-latest
python-version: "3.12"
python-version: "3.13"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
pip install -e ".[test]"
# NOTE: keep this version in sync with README
python --version
python --version | grep "3.12"
python --version | grep "3.13"
hatch run check_pre

test_lint:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Note: this does not work on Windows, and will error.
If you want to use your pending dependencies, you can use the following
option, which will create a constraints file and set the `PIP_CONSTRAINT`
environment variable, so that installations will use that file.
By default the Python version will be "3.12", which can be overridden with
By default the Python version will be "3.13", which can be overridden with
`python_version`. Note that the environment variable also works if
you use virtual environments like `hatch`.
Note: this does not work on Windows, and will error.
Expand Down
Loading