47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
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/actions/python-package-check@v1.1.0
|
|
with:
|
|
package_name: crawlee
|
|
dist_dir: dist
|
|
python_version: "3.14"
|
|
extras: all
|
|
smoke_code: |
|
|
from crawlee.crawlers import (
|
|
HttpCrawler, BeautifulSoupCrawler, ParselCrawler,
|
|
PlaywrightCrawler, AdaptivePlaywrightCrawler,
|
|
)
|
|
from crawlee.storages import Dataset, KeyValueStore, RequestQueue
|
|
from crawlee.http_clients import HttpxHttpClient, ImpitHttpClient
|
|
from crawlee import Request
|
|
HttpCrawler()
|
|
BeautifulSoupCrawler()
|
|
ParselCrawler()
|