Skip to content

Commit 5f21148

Browse files
committed
fix: Update test suite for EOL Python versions
1 parent 0b521ab commit 5f21148

File tree

3 files changed

+49
-14
lines changed

3 files changed

+49
-14
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: 19 additions & 10 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,36 +13,45 @@ 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
3544
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
3645
with:
3746
disable-sudo: true
38-
egress-policy: block
39-
allowed-endpoints: >
40-
auth.docker.io:443
41-
files.pythonhosted.org:443
42-
github.com:443
43-
production.cloudflare.docker.com:443
44-
pypi.org:443
45-
registry-1.docker.io:443
47+
egress-policy: audit
48+
#allowed-endpoints: >
49+
# auth.docker.io:443
50+
# files.pythonhosted.org:443
51+
# github.com:443
52+
# production.cloudflare.docker.com:443
53+
# pypi.org:443
54+
# registry-1.docker.io:443
4655

4756
- name: Checkout
4857
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

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)