diff --git a/.github/workflows/_check_code.yaml b/.github/workflows/_check_code.yaml index bb6b24e5..be9db967 100644 --- a/.github/workflows/_check_code.yaml +++ b/.github/workflows/_check_code.yaml @@ -30,10 +30,10 @@ jobs: name: Lint check uses: apify/workflows/.github/workflows/python_lint_check.yaml@main with: - python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' + python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' type_check: name: Type check uses: apify/workflows/.github/workflows/python_type_check.yaml@main with: - python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' + python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' diff --git a/.github/workflows/_tests.yaml b/.github/workflows/_tests.yaml index 4c609824..3e562baf 100644 --- a/.github/workflows/_tests.yaml +++ b/.github/workflows/_tests.yaml @@ -13,17 +13,19 @@ jobs: uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main secrets: inherit with: - python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' - operating-systems: '["ubuntu-latest", "windows-latest"]' - python-version-for-codecov: "3.14" - operating-system-for-codecov: ubuntu-latest + python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' + operating_systems: '["ubuntu-latest", "windows-latest"]' + python_version_for_codecov: "3.14" + operating_system_for_codecov: ubuntu-latest + tests_concurrency: "1" integration_tests: name: Integration tests uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main secrets: inherit with: - python-versions: '["3.10", "3.14"]' - operating-systems: '["ubuntu-latest"]' - python-version-for-codecov: "3.14" - operating-system-for-codecov: ubuntu-latest + python_versions: '["3.10", "3.14"]' + operating_systems: '["ubuntu-latest"]' + python_version_for_codecov: "3.14" + operating_system_for_codecov: ubuntu-latest + tests_concurrency: "1" diff --git a/pyproject.toml b/pyproject.toml index f9e31a88..1d8882ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -154,10 +154,10 @@ known-local-folder = ["apify_client"] max-branches = 18 [tool.pytest.ini_options] -addopts = "-ra" +addopts = "-r a --verbose" asyncio_default_fixture_loop_scope = "function" asyncio_mode = "auto" -timeout = 1200 +timeout = 1800 [tool.ty.environment] python-version = "3.10" @@ -184,13 +184,13 @@ context = 7 [tool.poe.tasks] clean = "rm -rf .coverage .pytest_cache .ruff_cache .ty_cache build dist htmlcov" install-sync = "uv sync --all-extras" -build = "uv build --verbose" -publish-to-pypi = "uv publish --verbose --token ${APIFY_PYPI_TOKEN_CRAWLEE}" +build = "uv build" +publish-to-pypi = "uv publish --token ${APIFY_PYPI_TOKEN_CRAWLEE}" type-check = "uv run ty check" -unit-tests = "uv run pytest --numprocesses=auto --verbose tests/unit" -unit-tests-cov = "uv run pytest --numprocesses=auto --verbose --cov=src/apify_client --cov-report=xml:coverage-unit.xml tests/unit" -integration-tests = "uv run pytest --numprocesses=${INTEGRATION_TESTS_CONCURRENCY:-1} --verbose tests/integration" -integration-tests-cov = "uv run pytest --numprocesses=${INTEGRATION_TESTS_CONCURRENCY:-1} --verbose --cov=src/apify_client --cov-report=xml:coverage-integration.xml tests/integration" +unit-tests = "uv run pytest --numprocesses=${TESTS_CONCURRENCY:-auto} tests/unit" +unit-tests-cov = "uv run pytest --numprocesses=${TESTS_CONCURRENCY:-auto} --cov=src/apify_client --cov-report=xml:coverage-unit.xml tests/unit" +integration-tests = "uv run pytest --numprocesses=${TESTS_CONCURRENCY:-auto} tests/integration" +integration-tests-cov = "uv run pytest --numprocesses=${TESTS_CONCURRENCY:-auto} --cov=src/apify_client --cov-report=xml:coverage-integration.xml tests/integration" check-async-docstrings = "uv run python scripts/check_async_docstrings.py" fix-async-docstrings = "uv run python scripts/fix_async_docstrings.py" check-code = ["lint", "type-check", "unit-tests", "check-async-docstrings"]