Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python_bump_and_update_changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
python_version:
required: false
type: string
default: "3.13" # The newest Python version.
default: "3.14" # The newest Python version.
version_number:
description: Version number of the new release (no leading "v")
required: true
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/python_docs_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ on:
python_version:
required: false
type: string
default: "3.13" # The newest Python version.
default: "3.14" # The newest Python version.
node_version:
required: false
type: string
default: "20"
install_command:
description: Command to install Python dependencies.
required: false
type: string
default: uv run poe install-dev
build_docs_command:
description: Command to build docs website.
required: false
type: string
default: uv run poe build-docs

jobs:
docs_check:
Expand Down Expand Up @@ -42,12 +52,9 @@ jobs:
python-version: ${{ inputs.python_version }}

- name: Install Python dependencies
run: make install-dev

- name: Build API reference
run: make build-api-reference
run: ${{ inputs.install_command }}

- name: Build docs website
run: make build-docs
run: ${{ inputs.build_docs_command }}
env:
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
14 changes: 12 additions & 2 deletions .github/workflows/python_integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ on:
description: Operating system to be used for codecov upload.
required: true
type: string
install_command:
description: Command to install Python dependencies.
required: false
type: string
default: uv run poe install-dev
run_tests_command:
description: Command to run integration tests.
required: false
type: string
default: uv run poe integration-tests-cov

# Concurrency control to ensure only one instance of this workflow runs at a time.
# This avoids exceeding API usage limits on the test user account.
Expand Down Expand Up @@ -73,10 +83,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: make install-dev
run: ${{ inputs.install_command }}

- name: Run integration tests
run: make INTEGRATION_TESTS_CONCURRENCY=8 integration-tests-cov
run: ${{ inputs.run_tests_command }}
env:
APIFY_TEST_USER_API_TOKEN: ${{ secrets.APIFY_TEST_USER_PYTHON_SDK_API_TOKEN }}
APIFY_TEST_USER_2_API_TOKEN: ${{ secrets.APIFY_TEST_USER_2_API_TOKEN }}
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/python_lint_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ on:
description: List of Python versions to be used (stringified JSON array).
required: true
type: string
install_command:
description: Command to install Python dependencies.
required: false
type: string
default: uv run poe install-dev
lint_command:
description: Command to run lint check.
required: false
type: string
default: uv run poe lint

jobs:
lint_check:
Expand All @@ -31,7 +41,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: make install-dev
run: ${{ inputs.install_command }}

- name: Run lint check
run: make lint
run: ${{ inputs.lint_command }}
14 changes: 12 additions & 2 deletions .github/workflows/python_type_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ on:
description: List of Python versions to be used (stringified JSON array).
required: true
type: string
install_command:
description: Command to install Python dependencies.
required: false
type: string
default: uv run poe install-dev
type_check_command:
description: Command to run type check.
required: false
type: string
default: uv run poe type-check

jobs:
type_check:
Expand All @@ -31,7 +41,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: make install-dev
run: ${{ inputs.install_command }}

- name: Run type check
run: make type-check
run: ${{ inputs.type_check_command }}
14 changes: 12 additions & 2 deletions .github/workflows/python_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ on:
description: Operating system to be used for codecov upload.
required: true
type: string
install_command:
description: Command to install Python dependencies.
required: false
type: string
default: uv run poe install-dev
run_tests_command:
description: Command to run unit tests.
required: false
type: string
default: uv run poe unit-tests-cov

jobs:
unit_tests:
Expand Down Expand Up @@ -62,10 +72,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install Python dependencies
run: make install-dev
run: ${{ inputs.install_command }}

- name: Run unit tests
run: make unit-tests-cov
run: ${{ inputs.run_tests_command }}

# Upload coverage only for the ubuntu-latest and latest Python, and only when the Codecov token
# is available (e.g. not for fork PRs).
Expand Down
16 changes: 13 additions & 3 deletions prepare-pypi-distribution/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ inputs:
python_version:
required: false
type: string
default: "3.13" # The newest Python version.
default: "3.14" # The newest Python version.
install_command:
description: Command to install Python dependencies.
required: false
type: string
default: uv run poe install-dev
build_command:
description: Command to build package.
required: false
type: string
default: uv run poe build

runs:
using: composite
Expand All @@ -36,7 +46,7 @@ runs:

- name: Install dependencies
shell: bash
run: make install-dev
run: ${{ inputs.install_command }}

# Updates the version number in the project's configuration.
- name: Set version in pyproject.toml
Expand Down Expand Up @@ -66,4 +76,4 @@ runs:
# Builds the package.
- name: Build package
shell: bash
run: make build
run: ${{ inputs.build_command }}
Loading