Skip to content

fix: Update test suite for EOL Python versions #360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ permissions: read-all

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python: ['3.9', '3.10', '3.11', '3.12']
platform: [ubuntu-latest]
include:
- platform: ubuntu-22.04
python: '3.8'
- platform: ubuntu-22.04
python: '3.7'
runs-on: ${{ matrix.platform }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Python Unit CI
on:
on:
push:
branches:
- main
Expand All @@ -13,22 +13,31 @@ jobs:
matrix:
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
platform: [ubuntu-latest, macos-latest, windows-latest]
# Python <= 3.9 is not available on macos-14
# Python <= 3.9 is not available on macos-latest
# Workaround for https://github.com/actions/setup-python/issues/696
# Python <= 3.8 is not available on ubuntu-latest
exclude:
- platform: macos-latest
python: '3.9'
- platform: macos-latest
python: '3.8'
- platform: macos-latest
python: '3.7'
- platform: ubuntu-latest
python: '3.8'
- platform: ubuntu-latest
python: '3.7'
include:
- platform: macos-latest
python: '3.9'
- platform: macos-13
python: '3.8'
- platform: macos-13
python: '3.7'
- platform: ubuntu-22.04
python: '3.8'
- platform: ubuntu-22.04
python: '3.7'
runs-on: ${{ matrix.platform }}
steps:
- name: Harden Runner
Expand All @@ -39,7 +48,9 @@ jobs:
allowed-endpoints: >
auth.docker.io:443
files.pythonhosted.org:443
api.github.com:443
github.com:443
objects.githubusercontent.com:443
production.cloudflare.docker.com:443
pypi.org:443
registry-1.docker.io:443
Expand Down
24 changes: 22 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
[tox]
envlist = py{35,36,37,38,39,310}-{ubuntu-latest,macos-latest,windows-latest},lint
envlist =
lint
py312-ubuntu-latest
py312-macos-latest
py312-windows-latest
py311-ubuntu-latest
py311-macos-latest
py311-windows-latest
py310-ubuntu-latest
py310-macos-latest
py310-windows-latest
py39-ubuntu-latest
py39-macos-13
py39-windows-latest
py38-ubuntu-22.04
py38-macos-13
py38-windows-latest
py37-ubuntu-22.04
py37-macos-13
py37-windows-latest

[testenv]
usedevelop = true
Expand All @@ -21,9 +40,10 @@ deps =
twine
isort
mypy
build
commands =
black --check src tests setup.py conftest.py --exclude tests/test_functions/background_load_error/main.py
isort -c src tests setup.py conftest.py
mypy tests/test_typing.py
python setup.py --quiet sdist bdist_wheel
python -m build
twine check dist/*
Loading