Skip to content

Commit

Permalink
Add Python 3.12 to CI matrix
Browse files Browse the repository at this point in the history
Also run build and lint CI jobs to ensure that building and linting
works for older Python versions.
  • Loading branch information
caleb531 committed Jan 31, 2024
1 parent 5a36080 commit f72c985
Show file tree
Hide file tree
Showing 4 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
20 changes: 12 additions & 8 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
uses: actions/setup-python@v3
with:
python-version: "3.11"
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
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

0 comments on commit f72c985

Please sign in to comment.