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/build_and_deploy_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Install Python dependencies
run: |
pipx install --python ${{ matrix.python-version }} poetry
pipx install --python ${{ env.PYTHON_VERSION }} poetry
make install-dev

- name: Build generated API reference
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/run_code_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,29 @@ name: Run code checks

on:
# Trigger code checks on opening a new pull request.
pull_request_target:
# Secrets are only made available to the integration tests job, with a manual approval
# step required for PRs from forks. This prevents their potential exposure.
pull_request:

# Do not trigger code checks on push to the master branch, as they will be triggered
# by the release workflow.

# Trigger code checks on workflow call (e.g. from run release workflow).
workflow_call:
# Trigger code checks on pushing to the master branch.
push:
branches:
- master
tags-ignore:
- "**"

jobs:
lint_check:
name: Lint check
uses: apify/workflows/.github/workflows/python/lint_check.yaml
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main

type_check:
name: Type check
uses: apify/workflows/.github/workflows/python/type_check.yaml
uses: apify/workflows/.github/workflows/python_type_check.yaml@main

unit_tests:
name: Unit tests
uses: apify/workflows/.github/workflows/python/unit_tests.yaml
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main

# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
changelog_entry_check:
Expand All @@ -35,9 +38,10 @@ jobs:

docs_check:
name: Docs check
uses: apify/workflows/.github/workflows/python/docs_check.yaml
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main

integration_tests:
name: Integration tests
uses: apify/workflows/.github/workflows/python/integration_tests.yaml
needs: [lint_check, type_check, unit_tests]
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
secrets: inherit
18 changes: 10 additions & 8 deletions .github/workflows/run_release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: Run release

on:
# Push to master will publish a beta version
# Push to master will publish a beta version.
push:
branches:
- master
tags-ignore:
- "**"
# A release via GitHub releases will publish a stable version

# A release via GitHub releases will publish a stable version.
release:
types: [published]
# Workflow dispatch will publish whatever you choose

# Workflow dispatch will publish whatever you choose.
workflow_dispatch:
inputs:
release_type:
Expand All @@ -37,17 +39,17 @@ jobs:
lint_check:
name: Lint check
needs: [should_release]
uses: apify/workflows/.github/workflows/python/lint_check.yaml
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main

type_check:
name: Type check
needs: [should_release]
uses: apify/workflows/.github/workflows/python/type_check.yaml
uses: apify/workflows/.github/workflows/python_type_check.yaml@main

unit_tests:
name: Unit tests
needs: [should_release]
uses: apify/workflows/.github/workflows/python/unit_tests.yaml
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main

# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
changelog_entry_check:
Expand All @@ -64,7 +66,7 @@ jobs:
integration_tests:
name: Integration tests
needs: [should_release]
uses: apify/workflows/.github/workflows/python/integration_tests.yaml
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
secrets: inherit

publish_to_pypi:
Expand Down Expand Up @@ -98,7 +100,7 @@ jobs:

- name: Install Python dependencies
run: |
pipx install --python ${{ matrix.python-version }} poetry
pipx install --python ${{ env.PYTHON_VERSION }} poetry
make install-dev

- # Determine if this is a prerelease or latest release
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ build-api-reference:
cd website && poetry run ./build_api_reference.sh

build-docs: build-api-reference
cd website && yarn && yarn build
cd website && npm clean-install && npm run build

run-docs: build-api-reference
cd website && npm clean-install && npm run start