Skip to content

Commit ae1e69d

Browse files
try fix coverage
1 parent f51eb9f commit ae1e69d

File tree

3 files changed

+40
-13
lines changed

3 files changed

+40
-13
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,4 @@ test: lint
2121

2222
coverage:
2323
@echo "🏠 Run coverage"
24-
uv run coverage run -m pytest tests
25-
uv run coverage report
26-
uv run coverage html
27-
uv run coverage xml
24+
uv run pytest tests --cov=outsystems tests --cov-config .coveragerc --cov-report=html:coverage --cov-report=xml --cov-report=term

pyproject.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ dependencies = [
3636
"pyjwt[crypto]>=2.10.1",
3737
"typing-extensions>=4.9.0",
3838
"typing-inspection>=0.4.1",
39-
"typer>=0.16.0",
40-
"python-dotenv>=1.0.0",
41-
"websockets>=15.0.1",
4239
]
4340

4441
[project.optional-dependencies]
@@ -55,6 +52,7 @@ required-version = ">=0.8.4"
5552
dev = [
5653
"pyright>=1.1.400",
5754
"pytest>=8.3.4",
55+
"pytest-cov>=6.2.1",
5856
"ruff>=0.8.5",
5957
"trio>=0.26.2",
6058
"pytest-flakefinder>=1.1.0",
@@ -64,6 +62,9 @@ dev = [
6462
"inline-snapshot>=0.23.0",
6563
"dirty-equals>=0.9.0",
6664
"coverage[toml]==7.10.7",
65+
"typer>=0.16.0",
66+
"python-dotenv>=1.0.0",
67+
"websockets>=15.0.1",
6768
]
6869
docs = [
6970
"mkdocs>=1.6.1",
@@ -146,11 +147,16 @@ mcp = { workspace = true }
146147

147148
[tool.pytest.ini_options]
148149
log_cli = true
150+
testpaths = ["tests/"]
149151
xfail_strict = true
150152
addopts = """
151153
--color=yes
152154
--capture=fd
153155
--numprocesses auto
156+
--import-mode=importlib
157+
--cov=outsystems
158+
--cov-report=term
159+
--cov-report=term-missing
154160
"""
155161
filterwarnings = [
156162
"error",
@@ -209,3 +215,10 @@ source = [
209215
"/home/runner/work/python-sdk/python-sdk/src/",
210216
'D:\a\python-sdk\python-sdk\src',
211217
]
218+
219+
[[tool.uv.index]]
220+
name = "rd-ai-common-artifacts"
221+
url = "https://pkgs.dev.azure.com/OutSystemsRD/d3b98e14-22a9-4c84-96ca-89f05dd57f01/_packaging/rd-ai-common-artifacts/pypi/simple/"
222+
publish-url = "https://pkgs.dev.azure.com/OutSystemsRD/d3b98e14-22a9-4c84-96ca-89f05dd57f01/_packaging/rd-ai-common-artifacts/pypi/upload/"
223+
explicit = true
224+
authenticate = "always"

uv.lock

Lines changed: 23 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)