Skip to content

Commit

Permalink
Updating github workflows to account for ubuntu dropping python 3.7 a…
Browse files Browse the repository at this point in the history
…nd 3.8 support.
  • Loading branch information
cecily_carver committed Jan 7, 2025
1 parent 8b627e6 commit 48a276a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.9'
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,30 @@ on:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
version:
- python: "3.7"
ubuntu: "ubuntu-22.04",
- python: "3.8"
ubuntu: "ubuntu-22.04",
- python: "3.9",
ubuntu: "ubuntu-latest"
- python: "3.10",
ubuntu: "ubuntu-latest"
- python: "3.11",
ubuntu: "ubuntu-latest"
- python: "3.12"
ubuntu: "ubuntu-latest"
runs-on: ${{ matrix.version.ubuntu }}
steps:
- uses: actions/checkout@v2
- name: Set up Kerberos
run: sudo apt-get install -y libkrb5-dev krb5-kdc krb5-admin-server
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.version.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.version.python }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
Expand All @@ -30,15 +42,15 @@ jobs:
run: |
make test
- name: Lint
if: matrix.python-version != '3.7'
if: matrix.version.python != '3.7'
run: |
make lint
- name: Format
if: matrix.python-version != '3.7'
if: matrix.version.python != '3.7'
run: |
make format-check
- name: Type annotations
if: matrix.python-version != '3.7'
if: matrix.version.python != '3.7'
run: |
make types
mysql-connector-j:
Expand Down

0 comments on commit 48a276a

Please sign in to comment.