Skip to content

Commit 5699078

Browse files
committed
Update coverage-check workflow to run quick subset of e2e tests
1 parent aabe381 commit 5699078

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/coverage-check.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: Code Coverage
33
permissions:
44
contents: read
55

6-
on:
7-
pull_request:
8-
workflow_dispatch: # Allow manual triggering
6+
on: [pull_request, workflow_dispatch]
97

108
jobs:
119
coverage:
@@ -63,11 +61,16 @@ jobs:
6361
- name: Install library
6462
run: poetry install --no-interaction --all-extras
6563
#----------------------------------------------
66-
# run test suite
64+
# run test suite (quick subset)
6765
#----------------------------------------------
68-
- name: Run tests with coverage
66+
- name: Run quick subset of tests with coverage
6967
continue-on-error: true
70-
run: poetry run python -m pytest tests/unit tests/e2e --cov=src --cov-report=xml --cov-report=term
68+
run: |
69+
echo "Running quick subset of e2e tests for validation..."
70+
poetry run python -m pytest \
71+
tests/e2e/test_driver.py::TestPySQLCoreSuite::test_queries \
72+
tests/e2e/test_driver.py::TestPySQLCoreSuite::test_escape_single_quotes \
73+
--cov=src --cov-report=xml --cov-report=term -v
7174
#----------------------------------------------
7275
# check for coverage override
7376
#----------------------------------------------

0 commit comments

Comments
 (0)