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
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Check async docstrings
name: Async docstrings check

on:
workflow_call:

env:
PYTHON_VERSION: 3.12

jobs:
check_async_docstrings:
name: Check whether doctrings for async methods are up-to-date
async_docstring_check:
name: Async docstrings check
runs-on: ubuntu-latest

steps:
Expand All @@ -15,12 +18,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: ${{ env.PYTHON_VERSION }}

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

- name: Check async docstrings
- name: Run async docstrings check
run: make check-async-docstrings
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Check package version availability
name: Changelog entry check

on:
workflow_call:

env:
PYTHON_VERSION: 3.12

jobs:
check_version_availability:
name: Check version availability
check_changelog_entry:
name: Changelog entry check
runs-on: ubuntu-latest
if: (!startsWith(github.event.pull_request.title, 'docs:'))

Expand All @@ -16,12 +19,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: ${{ env.PYTHON_VERSION }}

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

- name: Check version availability
run: make check-version-availability
- name: Run changelog entry check
run: make check-changelog-entry
30 changes: 30 additions & 0 deletions .github/workflows/_version_conflict_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Version conflict check

on:
workflow_call:

env:
PYTHON_VERSION: 3.12

jobs:
check_version_conflict:
name: Version conflict check
runs-on: ubuntu-latest
if: (!startsWith(github.event.pull_request.title, 'docs:'))

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

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

- name: Run version conflict check
run: make check-version-conflict
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
workflow_dispatch:

env:
NODE_VERSION: 20
PYTHON_VERSION: 3.12

jobs:
build_and_deploy_docs:
environment:
Expand All @@ -22,14 +26,14 @@ jobs:
with:
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

- name: Set up Node.js
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: website/package-lock.json

- name: Install Node.js dependencies
- name: Install Node dependencies
run: |
npm install
npm update @apify/docs-theme
Expand All @@ -48,11 +52,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: ${{ env.PYTHON_VERSION }}

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

- name: Build generated API reference
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/integration_tests.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/lint_and_type_checks.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/run_checks.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/run_code_checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run code checks

on:
# Trigger code checks on opening a new pull request.
# 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:

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

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

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

async_docstrings:
name: Async dostrings check
uses: ./.github/workflows/_async_docstrings_check.yaml

# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
changelog_entry_check:
name: Changelog entry check
uses: ./.github/workflows/_changelog_entry_check.yaml

# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
version_conflict_check:
name: Version conflict check
uses: ./.github/workflows/_version_conflict_check.yaml

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

integration_tests:
name: Integration tests
needs: [lint_check, type_check, unit_tests]
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
secrets: inherit
Loading