diff --git a/.github/workflows/_check_code.yaml b/.github/workflows/_check_code.yaml index bc903bb..967428a 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 958952d..9dd851e 100644 --- a/.github/workflows/_tests.yaml +++ b/.github/workflows/_tests.yaml @@ -12,8 +12,7 @@ jobs: name: Unit tests uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main with: - python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' - operating-systems: '["ubuntu-latest", "windows-latest"]' - # Apify shared don't use codecov, but we have to provide these inputs. - 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"]' + tests_concurrency: "1" + # Codecov inputs omitted - apify-shared-python doesn't use codecov. diff --git a/pyproject.toml b/pyproject.toml index cea1a02..89d4e79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,10 +95,10 @@ docstring-quotes = "double" inline-quotes = "single" [tool.pytest.ini_options] -addopts = "-ra" +addopts = "-r a --verbose" asyncio_default_fixture_loop_scope = "function" asyncio_mode = "auto" -timeout = 300 +timeout = 1800 [tool.ty.environment] python-version = "3.10" @@ -111,11 +111,11 @@ include = ["src", "tests", "scripts", "docs", "website"] clean = "rm -rf .coverage .pytest_cache .ruff_cache .ty_cache build dist htmlcov" install-sync = "uv sync --all-extras" install-dev = "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 --cov=src/apify_shared tests/unit" -unit-tests-cov = "uv run pytest --numprocesses=auto --verbose --cov=src/apify_shared --cov-report=html tests/unit" +unit-tests = "uv run pytest --numprocesses=${TESTS_CONCURRENCY:-auto} --cov=src/apify_shared tests/unit" +unit-tests-cov = "uv run pytest --numprocesses=${TESTS_CONCURRENCY:-auto} --cov=src/apify_shared --cov-report=html tests/unit" check-code = ["lint", "type-check", "unit-tests"] [tool.poe.tasks.lint]