From 08b03d4bc05c0214b4b7f1fe660db3312ccbcec0 Mon Sep 17 00:00:00 2001 From: aitbc Date: Sun, 19 Apr 2026 20:01:42 +0200 Subject: [PATCH] ci: restructure Python test paths and add asyncio configuration - 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 --- .gitea/workflows/python-tests.yml | 9 +++------ pytest.ini | 2 ++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/python-tests.yml b/.gitea/workflows/python-tests.yml index f4912161..d88cba40 100644 --- a/.gitea/workflows/python-tests.yml +++ b/.gitea/workflows/python-tests.yml @@ -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" diff --git a/pytest.ini b/pytest.ini index 9313718b..a00c2508 100644 --- a/pytest.ini +++ b/pytest.ini @@ -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