Skip to content

ci: add package verification check #32

ci: add package verification check

ci: add package verification check #32

name: CI (PR)
on:
# Runs whenever a pull request is opened or updated.
pull_request:
jobs:
pr_title_check:
name: PR title check
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
code_checks:
name: Code checks
uses: ./.github/workflows/_check_code.yaml
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_shared
src_package_dir: src/apify_shared
dist_dir: dist
python_version: "3.14"
smoke_code: |
from apify_shared.consts import WebhookEventType
tests:
name: Tests
uses: ./.github/workflows/_tests.yaml