Skip to content

Commit 1d92822

Browse files
committed
fix: Explicitly list each py37 environment for coverage exclusion
- List py37-ubuntu-22.04 and py37-macos-13 explicitly - Place py37 settings before general windows-latest setting - This should properly exclude aio module from coverage on Python 3.7
1 parent c92984b commit 1d92822

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ extras =
3333
async
3434
setenv =
3535
PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=100
36-
windows-latest: PYTESTARGS =
3736
# Python 3.7: Exclude aio module from coverage since it requires Python 3.8+ (Starlette dependency)
38-
py37-{ubuntu-22.04,macos-13,windows-latest}: PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=100 --cov-omit='*/aio/*'
37+
py37-ubuntu-22.04: PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=100 --cov-omit='*/aio/*'
38+
py37-macos-13: PYTESTARGS = --cov=functions_framework --cov-branch --cov-report term-missing --cov-fail-under=100 --cov-omit='*/aio/*'
39+
py37-windows-latest: PYTESTARGS =
40+
windows-latest: PYTESTARGS =
3941
commands = pytest {env:PYTESTARGS} {posargs}
4042

4143
[testenv:lint]

0 commit comments

Comments
 (0)