Skip to content

Commit ef45fae

Browse files
authored
fix: remove Python 3.7 test execution (#402)
Python 3.7 is a decomissioned runtime. Tests are failing because of language features not supported by this python version. Disable these tests rather than backfixing.
1 parent 3597a56 commit ef45fae

File tree

4 files changed

+1
-40
lines changed

4 files changed

+1
-40
lines changed

.coveragerc-py37

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/conformance.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
include:
1818
- platform: ubuntu-22.04
1919
python: '3.8'
20-
- platform: ubuntu-22.04
21-
python: '3.7'
2220
runs-on: ${{ matrix.platform }}
2321
steps:
2422
- name: Harden Runner

.github/workflows/unit.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
strategy:
1313
matrix:
14-
python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
14+
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
1515
platform: [ubuntu-latest, macos-latest, windows-latest]
1616
# Python <= 3.9 is not available on macos-latest
1717
# Workaround for https://github.com/actions/setup-python/issues/696
@@ -21,23 +21,15 @@ jobs:
2121
python: '3.9'
2222
- platform: macos-latest
2323
python: '3.8'
24-
- platform: macos-latest
25-
python: '3.7'
2624
- platform: ubuntu-latest
2725
python: '3.8'
28-
- platform: ubuntu-latest
29-
python: '3.7'
3026
include:
3127
- platform: macos-latest
3228
python: '3.9'
3329
- platform: macos-13
3430
python: '3.8'
35-
- platform: macos-13
36-
python: '3.7'
3731
- platform: ubuntu-22.04
3832
python: '3.8'
39-
- platform: ubuntu-22.04
40-
python: '3.7'
4133
runs-on: ${{ matrix.platform }}
4234
steps:
4335
- name: Harden Runner

tox.ini

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ envlist =
1616
py38-ubuntu-22.04
1717
py38-macos-13
1818
py38-windows-latest
19-
py37-ubuntu-22.04
20-
py37-macos-13
21-
py37-windows-latest
2219

2320
[testenv]
2421
usedevelop = true
@@ -31,10 +28,6 @@ deps =
3128
pretend
3229
setenv =
3330
PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=100
34-
# Python 3.7: Use .coveragerc-py37 to exclude aio module from coverage since it requires Python 3.8+ (Starlette dependency)
35-
py37-ubuntu-22.04: PYTESTARGS = --cov=functions_framework --cov-config=.coveragerc-py37 --cov-branch --cov-report term-missing --cov-fail-under=100
36-
py37-macos-13: PYTESTARGS = --cov=functions_framework --cov-config=.coveragerc-py37 --cov-branch --cov-report term-missing --cov-fail-under=100
37-
py37-windows-latest: PYTESTARGS =
3831
windows-latest: PYTESTARGS =
3932
commands = pytest {env:PYTESTARGS} {posargs}
4033

0 commit comments

Comments
 (0)