Skip to content

Commit 817f62e

Browse files
committed
refactor: install and run coverage directly
python 3.11 so coverage can use pyproject.toml config
1 parent 24d0b73 commit 817f62e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords = ["gam", "google"]
99
authors = [
1010
{ name = "Compiler LLC", email = "dev@compiler.la" }
1111
]
12-
requires-python = ">=3.9"
12+
requires-python = ">=3.11"
1313
dependencies = [
1414
"advanced-gam-for-google-workspace @ git+https://github.com/taers232c/GAMADV-XTD3.git@v6.61.14#subdirectory=src"
1515
]
@@ -26,8 +26,8 @@ dev = [
2626
"pre-commit"
2727
]
2828
test = [
29+
"coverage",
2930
"pytest",
30-
"pytest-cov",
3131
"pytest-mock"
3232
]
3333

@@ -43,6 +43,10 @@ line-length = 127
4343
target-version = ['py311']
4444
include = '\.pyi?$'
4545

46+
[tool.coverage.run]
47+
branch = true
48+
source = ["compiler_admin"]
49+
4650
[tool.pyright]
4751
include = ["compiler_admin", "tests"]
4852

tests/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eu
33

44
# run normal pytests, skip e2e tests
5-
pytest -m "not e2e" --cov=compiler_admin --cov-branch --import-mode=importlib
5+
coverage run -m pytest -m "not e2e"
66

77
# clean out old coverage results
88
rm -rf ./tests/coverage

0 commit comments

Comments
 (0)