Skip to content

Commit 6b1348d

Browse files
committed
Added e2e tests and related dependencies for coverage check
1 parent 5a40a45 commit 6b1348d

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.github/workflows/coverage-check.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ on:
99
jobs:
1010
coverage:
1111
runs-on: ubuntu-latest
12+
environment: azure-prod
13+
env:
14+
DATABRICKS_SERVER_HOSTNAME: ${{ secrets.DATABRICKS_HOST }}
15+
DATABRICKS_HTTP_PATH: ${{ secrets.TEST_PECO_WAREHOUSE_HTTP_PATH }}
16+
DATABRICKS_TOKEN: ${{ secrets.DATABRICKS_TOKEN }}
17+
DATABRICKS_CATALOG: peco
18+
DATABRICKS_USER: ${{ secrets.TEST_PECO_SP_ID }}
1219
steps:
1320
#----------------------------------------------
1421
# check-out repo and set-up python
@@ -53,12 +60,7 @@ jobs:
5360
# install your root project, if required
5461
#----------------------------------------------
5562
- name: Install library
56-
run: poetry install --no-interaction
57-
#----------------------------------------------
58-
# install additional dependencies for e2e tests
59-
#----------------------------------------------
60-
- name: Install e2e test dependencies
61-
run: poetry run pip install pyarrow
63+
run: poetry install --no-interaction --all-extras
6264
#----------------------------------------------
6365
# run test suite
6466
#----------------------------------------------

pyproject.toml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pyarrow = [
2626
{ version = ">=18.0.0", python = ">=3.13", optional=true }
2727
]
2828
pyjwt = "^2.0.0"
29-
pytest-cov = "^4.1.0"
29+
pytest-cov = "^4.0.0"
3030
coverage = "^7.0.0"
3131

3232

@@ -66,3 +66,21 @@ log_cli = "false"
6666
log_cli_level = "INFO"
6767
testpaths = ["tests"]
6868
env_files = ["test.env"]
69+
70+
[tool.coverage.run]
71+
source = ["src"]
72+
branch = true
73+
omit = [
74+
"*/tests/*",
75+
"*/test_*",
76+
"*/__pycache__/*",
77+
"*/thrift_api/*",
78+
]
79+
80+
[tool.coverage.report]
81+
precision = 2
82+
show_missing = true
83+
skip_covered = false
84+
85+
[tool.coverage.xml]
86+
output = "coverage.xml"

0 commit comments

Comments
 (0)