File tree Expand file tree Collapse file tree
prepare-pypi-distribution Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 python_version :
77 required : false
88 type : string
9- default : " 3.13 " # The newest Python version.
9+ default : " 3.14 " # The newest Python version.
1010 version_number :
1111 description : Version number of the new release (no leading "v")
1212 required : true
Original file line number Diff line number Diff line change 66 python_version :
77 required : false
88 type : string
9- default : " 3.13 " # The newest Python version.
9+ default : " 3.14 " # The newest Python version.
1010 node_version :
1111 required : false
1212 type : string
1313 default : " 20"
14+ install_command :
15+ description : Command to install Python dependencies.
16+ required : false
17+ type : string
18+ default : uv run poe install-dev
19+ build_docs_command :
20+ description : Command to build docs website.
21+ required : false
22+ type : string
23+ default : uv run poe build-docs
1424
1525jobs :
1626 docs_check :
4252 python-version : ${{ inputs.python_version }}
4353
4454 - name : Install Python dependencies
45- run : make install-dev
46-
47- - name : Build API reference
48- run : make build-api-reference
55+ run : ${{ inputs.install_command }}
4956
5057 - name : Build docs website
51- run : make build-docs
58+ run : ${{ inputs.build_docs_command }}
5259 env :
5360 APIFY_SIGNING_TOKEN : ${{ secrets.APIFY_SIGNING_TOKEN }}
Original file line number Diff line number Diff line change 2929 description : Operating system to be used for codecov upload.
3030 required : true
3131 type : string
32+ install_command :
33+ description : Command to install Python dependencies.
34+ required : false
35+ type : string
36+ default : uv run poe install-dev
37+ run_tests_command :
38+ description : Command to run integration tests.
39+ required : false
40+ type : string
41+ default : uv run poe integration-tests-cov
3242
3343# Concurrency control to ensure only one instance of this workflow runs at a time.
3444# This avoids exceeding API usage limits on the test user account.
@@ -73,10 +83,10 @@ jobs:
7383 python-version : ${{ matrix.python-version }}
7484
7585 - name : Install Python dependencies
76- run : make install-dev
86+ run : ${{ inputs.install_command }}
7787
7888 - name : Run integration tests
79- run : make INTEGRATION_TESTS_CONCURRENCY=8 integration-tests-cov
89+ run : ${{ inputs.run_tests_command }}
8090 env :
8191 APIFY_TEST_USER_API_TOKEN : ${{ secrets.APIFY_TEST_USER_PYTHON_SDK_API_TOKEN }}
8292 APIFY_TEST_USER_2_API_TOKEN : ${{ secrets.APIFY_TEST_USER_2_API_TOKEN }}
Original file line number Diff line number Diff line change 77 description : List of Python versions to be used (stringified JSON array).
88 required : true
99 type : string
10+ install_command :
11+ description : Command to install Python dependencies.
12+ required : false
13+ type : string
14+ default : uv run poe install-dev
15+ lint_command :
16+ description : Command to run lint check.
17+ required : false
18+ type : string
19+ default : uv run poe lint
1020
1121jobs :
1222 lint_check :
3141 python-version : ${{ matrix.python-version }}
3242
3343 - name : Install Python dependencies
34- run : make install-dev
44+ run : ${{ inputs.install_command }}
3545
3646 - name : Run lint check
37- run : make lint
47+ run : ${{ inputs.lint_command }}
Original file line number Diff line number Diff line change 77 description : List of Python versions to be used (stringified JSON array).
88 required : true
99 type : string
10+ install_command :
11+ description : Command to install Python dependencies.
12+ required : false
13+ type : string
14+ default : uv run poe install-dev
15+ type_check_command :
16+ description : Command to run type check.
17+ required : false
18+ type : string
19+ default : uv run poe type-check
1020
1121jobs :
1222 type_check :
3141 python-version : ${{ matrix.python-version }}
3242
3343 - name : Install Python dependencies
34- run : make install-dev
44+ run : ${{ inputs.install_command }}
3545
3646 - name : Run type check
37- run : make type-check
47+ run : ${{ inputs.type_check_command }}
Original file line number Diff line number Diff line change 2626 description : Operating system to be used for codecov upload.
2727 required : true
2828 type : string
29+ install_command :
30+ description : Command to install Python dependencies.
31+ required : false
32+ type : string
33+ default : uv run poe install-dev
34+ run_tests_command :
35+ description : Command to run unit tests.
36+ required : false
37+ type : string
38+ default : uv run poe unit-tests-cov
2939
3040jobs :
3141 unit_tests :
@@ -62,10 +72,10 @@ jobs:
6272 python-version : ${{ matrix.python-version }}
6373
6474 - name : Install Python dependencies
65- run : make install-dev
75+ run : ${{ inputs.install_command }}
6676
6777 - name : Run unit tests
68- run : make unit-tests-cov
78+ run : ${{ inputs.run_tests_command }}
6979
7080 # Upload coverage only for the ubuntu-latest and latest Python, and only when the Codecov token
7181 # is available (e.g. not for fork PRs).
Original file line number Diff line number Diff line change @@ -14,7 +14,17 @@ inputs:
1414 python_version :
1515 required : false
1616 type : string
17- default : " 3.13" # The newest Python version.
17+ default : " 3.14" # The newest Python version.
18+ install_command :
19+ description : Command to install Python dependencies.
20+ required : false
21+ type : string
22+ default : uv run poe install-dev
23+ build_command :
24+ description : Command to build package.
25+ required : false
26+ type : string
27+ default : uv run poe build
1828
1929runs :
2030 using : composite
3646
3747 - name : Install dependencies
3848 shell : bash
39- run : make install-dev
49+ run : ${{ inputs.install_command }}
4050
4151 # Updates the version number in the project's configuration.
4252 - name : Set version in pyproject.toml
6676 # Builds the package.
6777 - name : Build package
6878 shell : bash
69- run : make build
79+ run : ${{ inputs.build_command }}
You can’t perform that action at this time.
0 commit comments