Skip to content

Commit f523e67

Browse files
committed
ci: update test configuration to include all test files
- Update GitHub Action workflow to run all tests in test/ directory - Update tox configuration to run all test files instead of hardcoded subset - Fixes coverage failure in CI by including all test files for complete coverage This ensures that the CI environment runs the same comprehensive test suite that achieves 100% coverage locally, including: - test/test_client.py - test/test_integration.py - test/test_doc_splitter.py - test/test_generic_client.py - test/test_imports.py - test/test_performance.py
1 parent 20118ff commit f523e67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Run coverage separately
8080
if: matrix.test-env == 'py312'
8181
run: |
82-
uv run --frozen pytest test/test_client.py test/test_integration.py --cov=src/apihub_client --cov-report=xml --cov-report=html --cov-fail-under=85
82+
uv run --frozen pytest test/ --cov=src/apihub_client --cov-report=xml --cov-report=html --cov-fail-under=85
8383
8484
- name: Render the report to the PR
8585
if: matrix.test-env == 'py312' && github.event_name == 'pull_request'

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ deps =
1111
requests-mock>=1.9.0
1212
python-dotenv>=1.0.0
1313
commands =
14-
pytest {posargs} test/test_client.py test/test_integration.py -v
14+
pytest {posargs} test/ -v
1515

1616
[testenv:lint]
1717
deps =
@@ -42,7 +42,7 @@ deps =
4242
requests-mock>=1.9.0
4343
python-dotenv>=1.0.0
4444
commands =
45-
pytest test/test_client.py test/test_integration.py --cov=src/apihub_client --cov-report=term-missing --cov-report=html --cov-report=xml --cov-fail-under=85
45+
pytest test/ --cov=src/apihub_client --cov-report=term-missing --cov-report=html --cov-report=xml --cov-fail-under=85
4646

4747
[testenv:docs]
4848
deps =

0 commit comments

Comments
 (0)