Skip to content

Commit 113f23f

Browse files
committed
use shared workflows
1 parent b21ab0f commit 113f23f

12 files changed

+46
-218
lines changed

.github/workflows/_check_async_docstrings.yaml renamed to .github/workflows/_async_docstrings_check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Check async docstrings
1+
name: Async docstrings check
22

33
on:
44
workflow_call:
55

66
jobs:
7-
check_async_docstrings:
8-
name: Check whether doctrings for async methods are up-to-date
7+
async_docstring_check:
8+
name: Async docstrings check
99
runs-on: ubuntu-latest
1010
env:
1111
PYTHON_VERSION: 3.12
@@ -24,5 +24,5 @@ jobs:
2424
pipx install --python ${{ env.PYTHON_VERSION }} poetry
2525
make install-dev
2626
27-
- name: Check async docstrings
27+
- name: Execute async docstrings check
2828
run: make check-async-docstrings

.github/workflows/_check_changelog_entry.yaml renamed to .github/workflows/_changelog_entry_check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Check changelog entry
1+
name: Changelog entry check
22

33
on:
44
workflow_call:
55

66
jobs:
77
check_changelog_entry:
8-
name: Check changelog entry
8+
name: Changelog entry check
99
runs-on: ubuntu-latest
1010
if: (!startsWith(github.event.pull_request.title, 'docs:'))
1111
env:
@@ -25,5 +25,5 @@ jobs:
2525
pipx install --python ${{ env.PYTHON_VERSION }} poetry
2626
make install-dev
2727
28-
- name: Check changelog entry
28+
- name: Execute changelog entry check
2929
run: make check-changelog-entry

.github/workflows/_check_docs_build.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/_integration_tests.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/_linting.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/_type_checking.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/_unit_tests.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/_check_version_conflict.yaml renamed to .github/workflows/_version_conflict_check.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Check version conflict
1+
name: Version conflict check
22

33
on:
44
workflow_call:
55

66
jobs:
7-
check_version_availability:
8-
name: Check version conflict
7+
check_version_conflict:
8+
name: Version conflict check
99
runs-on: ubuntu-latest
1010
if: (!startsWith(github.event.pull_request.title, 'docs:'))
1111
env:
@@ -25,5 +25,5 @@ jobs:
2525
pipx install --python ${{ env.PYTHON_VERSION }} poetry
2626
make install-dev
2727
28-
- name: Check version conflict
28+
- name: Execute version conflict check
2929
run: make check-version-conflict

.github/workflows/run_code_checks.yaml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,39 @@ on:
1111
workflow_call:
1212

1313
jobs:
14-
run_linting:
15-
name: Run linting
16-
uses: ./.github/workflows/_linting.yaml
14+
lint_check:
15+
name: Lint check
16+
uses: apify/workflows/.github/workflows/python/lint_check.yaml
1717

18-
run_type_checking:
19-
name: Run type checking
20-
uses: ./.github/workflows/_type_checking.yaml
18+
type_check:
19+
name: Type check
20+
uses: apify/workflows/.github/workflows/python/type_check.yaml
2121

22-
run_unit_tests:
23-
name: Run unit tests
24-
uses: ./.github/workflows/_unit_tests.yaml
25-
26-
check_async_docstrings:
27-
name: Check async dostrings
28-
uses: ./.github/workflows/_check_async_docstrings.yaml
22+
unit_tests:
23+
name: Unit tests
24+
uses: apify/workflows/.github/workflows/python/unit_tests.yaml
25+
secrets: inherit
2926

30-
check_changelog_entry:
31-
name: Check changelog entry
32-
uses: ./.github/workflows/_check_changelog_entry.yaml
27+
async_docstrings:
28+
name: Async dostrings check
29+
uses: ./.github/workflows/_async_docstrings_check.yaml
3330

34-
check_docs_build:
35-
name: Check docs build
36-
uses: ./.github/workflows/_check_docs_build.yaml
31+
# TODO: remove this once https://github.com/apify/apify-client-python/issues/273 is resolved
32+
changelog_entry_check:
33+
name: Changelog entry check
34+
uses: ./.github/workflows/_changelog_entry_check.yaml
3735

36+
# TODO: remove this once https://github.com/apify/apify-client-python/issues/273 is resolved
3837
check_version_conflict:
3938
name: Check version conflict
40-
uses: ./.github/workflows/_check_version_conflict.yaml
39+
uses: ./.github/workflows/_version_conflict_check.yaml
40+
41+
docs_check:
42+
name: Docs check
43+
uses: apify/workflows/.github/workflows/python/docs_check.yaml
44+
secrets: inherit
4145

42-
run_integration_tests:
43-
name: Run integration tests
44-
uses: ./.github/workflows/_integration_tests.yaml
46+
integration_tests:
47+
name: Integration tests
48+
uses: apify/workflows/.github/workflows/python/integration_tests.yaml
4549
secrets: inherit

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
pass_filenames: false
1515

1616
- id: check-async-docstrings
17-
name: Check whether async docstrings are aligned with sync ones
17+
name: Check async docstrings
1818
entry: make check-async-docstrings
1919
language: system
2020
pass_filenames: false

0 commit comments

Comments
 (0)