ci: restructure Python test paths and add asyncio configuration
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:
aitbc
2026-04-19 20:01:42 +02:00
parent 8495b558ea
commit 08b03d4bc0
2 changed files with 5 additions and 6 deletions

View File

@@ -72,15 +72,12 @@ jobs:
python3 -c "import aitbc_crypto; print('✅ aitbc_crypto imported')" python3 -c "import aitbc_crypto; print('✅ aitbc_crypto imported')"
python3 -c "import aitbc_sdk; print('✅ aitbc_sdk imported')" python3 -c "import aitbc_sdk; print('✅ aitbc_sdk imported')"
pytest tests/ \ pytest tests/archived_phase_tests/ \
apps/coordinator-api/tests/ \ tests/cross_phase/ \
apps/blockchain-node/tests/ \
apps/wallet/tests/ \ apps/wallet/tests/ \
packages/py/aitbc-crypto/tests/ \ packages/py/aitbc-crypto/tests/ \
packages/py/aitbc-sdk/tests/ \ packages/py/aitbc-sdk/tests/ \
--tb=short -q --timeout=30 --import-mode=importlib \ --tb=short -q --timeout=30 --import-mode=importlib
--ignore=tests/production \
--ignore=apps/coordinator-api/tests/test_confidential*.py
echo "✅ Python tests completed" echo "✅ Python tests completed"

View File

@@ -4,6 +4,8 @@ python_files = test_*.py
python_classes = Test* python_classes = Test*
python_functions = test_* python_functions = test_*
addopts = -v --tb=short addopts = -v --tb=short
asyncio_mode = auto
asyncio_default_fixture_loop_scope = function
markers = markers =
slow: marks tests as slow slow: marks tests as slow
integration: marks tests as integration tests integration: marks tests as integration tests