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
10 changes: 1 addition & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,9 @@ jobs:
with:
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'

unit_tests:
name: Unit tests
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
secrets:
httpbin_url: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org'}}
with:
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'

update_changelog:
name: Update changelog
needs: [release_metadata, lint_check, type_check, unit_tests]
needs: [release_metadata, lint_check, type_check]
uses: apify/workflows/.github/workflows/python_bump_and_update_changelog.yaml@main
with:
version_number: ${{ needs.release_metadata.outputs.version_number }}
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/run_code_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ on:
workflow_dispatch:

jobs:
actions_lint_check:
name: Actions lint check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Run actionlint
uses: rhysd/actionlint@v1.7.9

lint_check:
name: Lint check
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
Expand All @@ -33,10 +42,13 @@ jobs:
name: Unit tests
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
secrets:
httpbin_url: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org'}}
httpbin_url: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org' }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
operating-systems: '["ubuntu-latest", "windows-latest", "macos-latest"]'
python-version-for-codecov: "3.14"
operating-system-for-codecov: ubuntu-latest

docs_check:
name: Docs check
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ build/
# Coverage reports
.coverage*
htmlcov
coverage-unit.xml
coverage-integration.xml

# IDE, editors
.vscode
Expand Down
31 changes: 26 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,36 @@ type-check:
uv run mypy

unit-tests:
uv run pytest --numprocesses=1 -vv tests/unit -m "run_alone"
uv run pytest --numprocesses=auto -vv tests/unit -m "not run_alone"
uv run pytest \
--numprocesses=1 \
--verbose \
-m "run_alone" \
tests/unit
uv run pytest \
--numprocesses=auto \
--verbose \
-m "not run_alone" \
tests/unit

unit-tests-cov:
uv run pytest --numprocesses=1 -vv --cov=src/crawlee tests/unit -m "run_alone"
uv run pytest --numprocesses=auto -vv --cov=src/crawlee --cov-append --cov-report=html tests/unit -m "not run_alone"
uv run pytest \
--numprocesses=1 \
--verbose \
-m "run_alone" \
--cov=src/crawlee \
--cov-report=xml:coverage-unit.xml \
tests/unit
uv run pytest \
--numprocesses=auto \
--verbose \
-m "not run_alone" \
--cov=src/crawlee \
--cov-report=xml:coverage-unit.xml \
--cov-append \
tests/unit

e2e-templates-tests $(args):
uv run pytest --numprocesses=$(E2E_TESTS_CONCURRENCY) -vv tests/e2e/project_template "$(args)" --timeout=600
uv run pytest --numprocesses=$(E2E_TESTS_CONCURRENCY) --verbose tests/e2e/project_template "$(args)" --timeout=600

format:
uv run ruff check --fix
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
<a href="https://pypi.org/project/crawlee/" rel="nofollow">
<img src="https://img.shields.io/pypi/dm/crawlee" alt="PyPI - Downloads" style="max-width: 100%;">
</a>
<a href="https://codecov.io/gh/apify/crawlee-python" >
<img src="https://codecov.io/gh/apify/crawlee-python/graph/badge.svg?token=cCju61iPQG" alt="Code cov report" style="max-width: 100%;"/>
</a>
<a href="https://pypi.org/project/crawlee/" rel="nofollow">
<img src="https://img.shields.io/pypi/pyversions/crawlee" alt="PyPI - Python Version" style="max-width: 100%;">
</a>
Expand Down
Loading