Skip to content

Commit

Permalink
CI: Update GHA workflows to Python 3.12
Browse files Browse the repository at this point in the history
Start testing Python 3.12 in CI
  • Loading branch information
EwoutH authored and rht committed Oct 23, 2023
1 parent 6616cda commit cd18cdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
fail-fast: False
matrix:
os: [windows, ubuntu, macos]
python-version: ["3.11"]
python-version: ["3.12"]
include:
- os: ubuntu
python-version: "3.11"
- os: ubuntu
python-version: "3.10"
- os: ubuntu
Expand Down Expand Up @@ -64,10 +66,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- run: pip install ruff==0.0.275
- name: Lint with ruff
# Include `--format=github` to enable automatic inline annotations.
Expand All @@ -78,10 +80,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- run: pip install black[jupyter]
- name: Lint with black
run: black --check --exclude=mesa/cookiecutter-mesa/* .
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.12"
- name: Install dependencies
run: pip install -U pip wheel setuptools
- name: Build package
Expand Down

0 comments on commit cd18cdf

Please sign in to comment.