Skip to content

Commit

Permalink
Add Python 3.12 to CI matrix (#204)
Browse files Browse the repository at this point in the history
* Add Python 3.12 to CI matrix

Also run build and lint CI jobs to ensure that building and linting
works for older Python versions.

* Update typing_extensions to fix TypeVar error on Python 3.12

* Upgrade flake8 and its dependencies

In an attempt to fix a flake8.exceptions.FailedToLoadPlugin error on
Python 3.12.
  • Loading branch information
caleb531 committed Jan 31, 2024
1 parent 5a36080 commit 45f3ded
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,19 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Python 3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: ${{ matrix.python-version }}

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ jobs:
lint:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Python 3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: ${{ matrix.python-version }}

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Python 3
uses: actions/setup-python@v3
with:
python-version: "3.11"
python-version: "3.12"

- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ cached_method==0.1.0
click==8.1.3
coloraide==1.8.2
coverage==6.4.4
flake8==6.0.0
flake8==7.0.0
flake8-black==0.3.6
flake8-isort==6.0.0
flake8-isort==6.1.1
Flake8-pyproject==1.2.3
frozendict==2.3.4
isort==5.10.1
Expand All @@ -18,12 +18,12 @@ nose2==0.12.0
packaging==23.0
pathspec==0.11.1
platformdirs==3.2.0
pycodestyle==2.10.0
pycodestyle==2.11.1
pydot==1.4.2
pyflakes==3.0.1
pyflakes==3.2.0
pygraphviz==1.10
pyparsing==3.0.9
pyproject_hooks==1.0.0
tomli==2.0.1
types-frozendict==2.0.9
typing_extensions==4.5.0
typing_extensions==4.9.0

0 comments on commit 45f3ded

Please sign in to comment.