Skip to content

Commit 48a276a

Browse files
author
cecily_carver
committed
Updating github workflows to account for ubuntu dropping python 3.7 and 3.8 support.
1 parent 8b627e6 commit 48a276a

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

Diff for: .github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Set up Python 3.8
14-
uses: actions/setup-python@v2
13+
- name: Set up Python 3.9
14+
uses: actions/setup-python@v5
1515
with:
16-
python-version: '3.8'
16+
python-version: '3.9'
1717
cache: pip
1818
cache-dependency-path: setup.py
1919
- name: Install dependencies

Diff for: .github/workflows/tests.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,30 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
1211
strategy:
1312
matrix:
14-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
13+
version:
14+
- python: "3.7"
15+
ubuntu: "ubuntu-22.04",
16+
- python: "3.8"
17+
ubuntu: "ubuntu-22.04",
18+
- python: "3.9",
19+
ubuntu: "ubuntu-latest"
20+
- python: "3.10",
21+
ubuntu: "ubuntu-latest"
22+
- python: "3.11",
23+
ubuntu: "ubuntu-latest"
24+
- python: "3.12"
25+
ubuntu: "ubuntu-latest"
26+
runs-on: ${{ matrix.version.ubuntu }}
1527
steps:
1628
- uses: actions/checkout@v2
1729
- name: Set up Kerberos
1830
run: sudo apt-get install -y libkrb5-dev krb5-kdc krb5-admin-server
19-
- name: Set up Python ${{ matrix.python-version }}
31+
- name: Set up Python ${{ matrix.version.python }}
2032
uses: actions/setup-python@v5
2133
with:
22-
python-version: ${{ matrix.python-version }}
34+
python-version: ${{ matrix.version.python }}
2335
cache: pip
2436
cache-dependency-path: setup.py
2537
- name: Install dependencies
@@ -30,15 +42,15 @@ jobs:
3042
run: |
3143
make test
3244
- name: Lint
33-
if: matrix.python-version != '3.7'
45+
if: matrix.version.python != '3.7'
3446
run: |
3547
make lint
3648
- name: Format
37-
if: matrix.python-version != '3.7'
49+
if: matrix.version.python != '3.7'
3850
run: |
3951
make format-check
4052
- name: Type annotations
41-
if: matrix.python-version != '3.7'
53+
if: matrix.version.python != '3.7'
4254
run: |
4355
make types
4456
mysql-connector-j:

0 commit comments

Comments
 (0)