Skip to content

Commit c0fa420

Browse files
authored
fix: Update test suite for EOL Python versions (#360)
1 parent 9348c87 commit c0fa420

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

.github/workflows/conformance.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ permissions: read-all
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
16-
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
15+
python: ['3.9', '3.10', '3.11', '3.12']
16+
platform: [ubuntu-latest]
17+
include:
18+
- platform: ubuntu-22.04
19+
python: '3.8'
20+
- platform: ubuntu-22.04
21+
python: '3.7'
22+
runs-on: ${{ matrix.platform }}
1723
steps:
1824
- name: Harden Runner
1925
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1

.github/workflows/unit.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Python Unit CI
2-
on:
2+
on:
33
push:
44
branches:
55
- main
@@ -13,22 +13,31 @@ jobs:
1313
matrix:
1414
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1515
platform: [ubuntu-latest, macos-latest, windows-latest]
16-
# Python <= 3.9 is not available on macos-14
16+
# Python <= 3.9 is not available on macos-latest
1717
# Workaround for https://github.com/actions/setup-python/issues/696
18+
# Python <= 3.8 is not available on ubuntu-latest
1819
exclude:
1920
- platform: macos-latest
2021
python: '3.9'
2122
- platform: macos-latest
2223
python: '3.8'
2324
- platform: macos-latest
2425
python: '3.7'
26+
- platform: ubuntu-latest
27+
python: '3.8'
28+
- platform: ubuntu-latest
29+
python: '3.7'
2530
include:
2631
- platform: macos-latest
2732
python: '3.9'
2833
- platform: macos-13
2934
python: '3.8'
3035
- platform: macos-13
3136
python: '3.7'
37+
- platform: ubuntu-22.04
38+
python: '3.8'
39+
- platform: ubuntu-22.04
40+
python: '3.7'
3241
runs-on: ${{ matrix.platform }}
3342
steps:
3443
- name: Harden Runner
@@ -39,7 +48,9 @@ jobs:
3948
allowed-endpoints: >
4049
auth.docker.io:443
4150
files.pythonhosted.org:443
51+
api.github.com:443
4252
github.com:443
53+
objects.githubusercontent.com:443
4354
production.cloudflare.docker.com:443
4455
pypi.org:443
4556
registry-1.docker.io:443

tox.ini

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
[tox]
2-
envlist = py{35,36,37,38,39,310}-{ubuntu-latest,macos-latest,windows-latest},lint
2+
envlist =
3+
lint
4+
py312-ubuntu-latest
5+
py312-macos-latest
6+
py312-windows-latest
7+
py311-ubuntu-latest
8+
py311-macos-latest
9+
py311-windows-latest
10+
py310-ubuntu-latest
11+
py310-macos-latest
12+
py310-windows-latest
13+
py39-ubuntu-latest
14+
py39-macos-13
15+
py39-windows-latest
16+
py38-ubuntu-22.04
17+
py38-macos-13
18+
py38-windows-latest
19+
py37-ubuntu-22.04
20+
py37-macos-13
21+
py37-windows-latest
322

423
[testenv]
524
usedevelop = true
@@ -21,9 +40,10 @@ deps =
2140
twine
2241
isort
2342
mypy
43+
build
2444
commands =
2545
black --check src tests setup.py conftest.py --exclude tests/test_functions/background_load_error/main.py
2646
isort -c src tests setup.py conftest.py
2747
mypy tests/test_typing.py
28-
python setup.py --quiet sdist bdist_wheel
48+
python -m build
2949
twine check dist/*

0 commit comments

Comments
 (0)