Skip to content

Commit 3f012d8

Browse files
committed
update release
1 parent 26da8b8 commit 3f012d8

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/run_release.yaml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check & Release
1+
name: Run release
22

33
on:
44
# Push to master will publish a beta version
@@ -28,41 +28,43 @@ jobs:
2828
name: Check whether to release
2929
if: (!startsWith(github.event.head_commit.message, 'docs:') || github.event_name == 'workflow_dispatch')
3030
runs-on: ubuntu-latest
31+
env:
32+
PYTHON_VERSION: 3.12
3133
steps:
3234
- name: Dummy step
3335
run: true
3436

35-
lint_and_type_checks:
36-
name: Run lint and type_checks
37+
linting:
38+
name: Run linting
3739
needs: [should_release]
38-
uses: ./.github/workflows/lint_and_type_checks.yaml
40+
uses: ./.github/workflows/_linting.yaml
3941

40-
unit_tests:
41-
name: Run unit tests
42+
type_checking:
43+
name: Run type checking
4244
needs: [should_release]
43-
uses: ./.github/workflows/unit_tests.yaml
45+
uses: ./.github/workflows/_type_checking.yaml
4446

45-
check_async_docstrings:
46-
name: Check whether async dostrings are up to date
47+
unit_tests:
48+
name: Run unit tests
4749
needs: [should_release]
48-
uses: ./.github/workflows/_check_async_docstrings.yaml
50+
uses: ./.github/workflows/_unit_tests.yaml
4951

5052
integration_tests:
5153
name: Run integration tests
5254
needs: [should_release]
53-
uses: ./.github/workflows/integration_tests.yaml
55+
uses: ./.github/workflows/_integration_tests.yaml
5456
secrets: inherit
5557

5658
publish_to_pypi:
5759
name: Publish to PyPI
58-
needs: [should_release, lint_and_type_checks, unit_tests, check_async_docstrings, integration_tests]
60+
needs: [should_release, linting, type_checking, unit_tests, integration_tests]
5961
runs-on: ubuntu-latest
6062
permissions:
6163
contents: write
6264
id-token: write
6365
environment:
6466
name: pypi
65-
url: https://pypi.org/p/apify-client
67+
url: https://pypi.org/project/apify-client/
6668

6769
steps:
6870
- name: Checkout repository
@@ -71,11 +73,11 @@ jobs:
7173
- name: Set up Python
7274
uses: actions/setup-python@v5
7375
with:
74-
python-version: 3.8
76+
python-version: ${{ env.PYTHON_VERSION }}
7577

7678
- name: Install dependencies
7779
run: |
78-
pipx install poetry
80+
pipx install --python ${{ matrix.python-version }} poetry
7981
make install-dev
8082
8183
- # Determine if this is a prerelease or latest release

0 commit comments

Comments
 (0)