Skip to content

Commit

Permalink
CI: Bump pre to Python 3.13, standard to 3.12 (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH authored Nov 20, 2024
1 parent b2fcbb9 commit 8caed5b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
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

0 comments on commit 8caed5b

Please sign in to comment.