ci: restructure Python test paths and add asyncio configuration
All checks were successful
Python Tests / test-python (push) Successful in 2m48s
All checks were successful
Python Tests / test-python (push) Successful in 2m48s
- Changed test paths from apps/coordinator-api and apps/blockchain-node to tests/archived_phase_tests and tests/cross_phase - Removed --ignore flags for tests/production and test_confidential*.py files - Added asyncio_mode = auto and asyncio_default_fixture_loop_scope = function to pytest.ini for better async test handling
This commit is contained in:
@@ -72,15 +72,12 @@ jobs:
|
||||
python3 -c "import aitbc_crypto; print('✅ aitbc_crypto imported')"
|
||||
python3 -c "import aitbc_sdk; print('✅ aitbc_sdk imported')"
|
||||
|
||||
pytest tests/ \
|
||||
apps/coordinator-api/tests/ \
|
||||
apps/blockchain-node/tests/ \
|
||||
pytest tests/archived_phase_tests/ \
|
||||
tests/cross_phase/ \
|
||||
apps/wallet/tests/ \
|
||||
packages/py/aitbc-crypto/tests/ \
|
||||
packages/py/aitbc-sdk/tests/ \
|
||||
--tb=short -q --timeout=30 --import-mode=importlib \
|
||||
--ignore=tests/production \
|
||||
--ignore=apps/coordinator-api/tests/test_confidential*.py
|
||||
--tb=short -q --timeout=30 --import-mode=importlib
|
||||
|
||||
echo "✅ Python tests completed"
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ python_files = test_*.py
|
||||
python_classes = Test*
|
||||
python_functions = test_*
|
||||
addopts = -v --tb=short
|
||||
asyncio_mode = auto
|
||||
asyncio_default_fixture_loop_scope = function
|
||||
markers =
|
||||
slow: marks tests as slow
|
||||
integration: marks tests as integration tests
|
||||
|
||||
Reference in New Issue
Block a user