Skip to content
Open
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
39 changes: 39 additions & 0 deletions .github/workflows/_check_package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Package check

on:
# Runs when manually triggered from the GitHub UI.
workflow_dispatch:

# Runs when invoked by another workflow.
workflow_call:

permissions:
contents: read

jobs:
package_check:
name: Package check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up uv package manager
uses: astral-sh/setup-uv@v8.1.0
with:
python-version: "3.14"

- name: Build sdist and wheel
run: uv run poe build

- name: Verify built package
uses: apify/workflows/python-package-check@main
with:
package_name: apify
src_package_dir: src/apify
dist_dir: dist
python_version: "3.14"
smoke_code: |
from apify import Actor, Configuration, ProxyConfiguration
Configuration()
ProxyConfiguration()
12 changes: 12 additions & 0 deletions .github/workflows/manual_release_beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ jobs:
version_number: ${{ needs.release_prepare.outputs.version_number }}
ref: ${{ needs.changelog_update.outputs.changelog_commitish }}

- name: Verify built package
uses: apify/workflows/python-package-check@main
with:
package_name: apify
src_package_dir: src/apify
dist_dir: dist
python_version: "3.14"
smoke_code: |
from apify import Actor, Configuration, ProxyConfiguration
Configuration()
ProxyConfiguration()

# Publish the package to PyPI using PyPA official GitHub action with OIDC authentication.
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/manual_release_stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ jobs:
version_number: ${{ needs.release_prepare.outputs.version_number }}
ref: ${{ needs.changelog_update.outputs.changelog_commitish }}

- name: Verify built package
uses: apify/workflows/python-package-check@main
with:
package_name: apify
src_package_dir: src/apify
dist_dir: dist
python_version: "3.14"
smoke_code: |
from apify import Actor, Configuration, ProxyConfiguration
Configuration()
ProxyConfiguration()

# Publish the package to PyPI using PyPA official GitHub action with OIDC authentication.
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/on_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
name: Code checks
uses: ./.github/workflows/_check_code.yaml

package_check:
name: Package check
uses: ./.github/workflows/_check_package.yaml

tests:
name: Tests
uses: ./.github/workflows/_tests.yaml
Expand Down
Loading