Skip to content

Commit 7eaa6a0

Browse files
vdusekclaude
andcommitted
ci: extract package_check job into _check_package.yaml
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 32597a3 commit 7eaa6a0

2 files changed

Lines changed: 38 additions & 22 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Package check
2+
3+
on:
4+
# Runs when manually triggered from the GitHub UI.
5+
workflow_dispatch:
6+
7+
# Runs when invoked by another workflow.
8+
workflow_call:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
package_check:
15+
name: Package check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v6
20+
21+
- name: Set up uv package manager
22+
uses: astral-sh/setup-uv@v8.1.0
23+
with:
24+
python-version: "3.14"
25+
26+
- name: Build sdist and wheel
27+
run: uv run poe build
28+
29+
- name: Verify built package
30+
uses: apify/workflows/python-package-check@main
31+
with:
32+
package_name: apify_shared
33+
src_package_dir: src/apify_shared
34+
dist_dir: dist
35+
python_version: "3.14"
36+
smoke_code: |
37+
from apify_shared.consts import WebhookEventType

.github/workflows/on_pull_request.yaml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,7 @@ jobs:
1919

2020
package_check:
2121
name: Package check
22-
runs-on: ubuntu-latest
23-
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v6
26-
27-
- name: Set up uv package manager
28-
uses: astral-sh/setup-uv@v8.1.0
29-
with:
30-
python-version: "3.14"
31-
32-
- name: Build sdist and wheel
33-
run: uv run poe build
34-
35-
- name: Verify built package
36-
uses: apify/workflows/python-package-check@main
37-
with:
38-
package_name: apify_shared
39-
src_package_dir: src/apify_shared
40-
dist_dir: dist
41-
python_version: "3.14"
42-
smoke_code: |
43-
from apify_shared.consts import WebhookEventType
22+
uses: ./.github/workflows/_check_package.yaml
4423

4524
tests:
4625
name: Tests

0 commit comments

Comments
 (0)