Skip to content

Commit ac89621

Browse files
committed
update
1 parent 33b280f commit ac89621

File tree

5 files changed

+26
-31
lines changed

5 files changed

+26
-31
lines changed

.github/workflows/_publish_to_pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
id-token: write # Required for OIDC authentication.
1717
environment:
1818
name: pypi
19-
url: https://pypi.org/project/crawlee
19+
url: https://pypi.org/project/apify-client/
2020
env:
2121
PYTHON_VERSION: 3.12
2222

.github/workflows/build_and_deploy_docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555

5656
- name: Install Python dependencies
5757
run: |
58-
pipx install --python ${{ matrix.python-version }} poetry
58+
pipx install --python ${{ env.PYTHON_VERSION }} poetry
5959
make install-dev
6060
6161
- name: Build generated API reference

.github/workflows/run_code_checks.yaml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,43 @@ name: Run code checks
22

33
on:
44
# Trigger code checks on opening a new pull request.
5-
pull_request_target:
6-
7-
# Do not trigger code checks on push to the master branch, as they will be triggered
8-
# by the release workflow.
9-
10-
# Trigger code checks on workflow call (e.g. from run release workflow).
11-
workflow_call:
5+
# Secrets are only made available to the integration tests job, with a manual approval
6+
# step required for PRs from forks. This prevents their potential exposure.
7+
pull_request:
128

139
jobs:
1410
lint_check:
1511
name: Lint check
16-
uses: apify/workflows/.github/workflows/python/lint_check.yaml
12+
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
1713

1814
type_check:
1915
name: Type check
20-
uses: apify/workflows/.github/workflows/python/type_check.yaml
16+
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
2117

2218
unit_tests:
2319
name: Unit tests
24-
uses: apify/workflows/.github/workflows/python/unit_tests.yaml
20+
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
2521

2622
async_docstrings:
2723
name: Async dostrings check
2824
uses: ./.github/workflows/_async_docstrings_check.yaml
2925

30-
# TODO: remove this once https://github.com/apify/apify-client-python/issues/273 is resolved
26+
# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
3127
changelog_entry_check:
3228
name: Changelog entry check
3329
uses: ./.github/workflows/_changelog_entry_check.yaml
3430

35-
# TODO: remove this once https://github.com/apify/apify-client-python/issues/273 is resolved
36-
check_version_conflict:
37-
name: Check version conflict
31+
# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
32+
version_conflict_check:
33+
name: Version conflict check
3834
uses: ./.github/workflows/_version_conflict_check.yaml
3935

4036
docs_check:
4137
name: Docs check
42-
uses: apify/workflows/.github/workflows/python/docs_check.yaml
38+
uses: apify/workflows/.github/workflows/python_docs_check.yaml@main
4339

4440
integration_tests:
4541
name: Integration tests
46-
uses: apify/workflows/.github/workflows/python/integration_tests.yaml
42+
needs: [lint_check, type_check, unit_tests]
43+
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
4744
secrets: inherit

.github/workflows/run_release.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: Run release
22

33
on:
4-
# Push to master will publish a beta version
4+
# Push to master will publish a beta version.
55
push:
66
branches:
77
- master
88
tags-ignore:
99
- "**"
10-
# A release via GitHub releases will publish a stable version
10+
11+
# A release via GitHub releases will publish a stable version.
1112
release:
1213
types: [published]
13-
# Workflow dispatch will publish whatever you choose
14+
15+
# Workflow dispatch will publish whatever you choose.
1416
workflow_dispatch:
1517
inputs:
1618
release_type:
@@ -37,21 +39,17 @@ jobs:
3739
lint_check:
3840
name: Lint check
3941
needs: [should_release]
40-
uses: apify/workflows/.github/workflows/python/lint_check.yaml
42+
uses: apify/workflows/.github/workflows/python_lint_check.yaml@main
4143

4244
type_check:
4345
name: Type check
4446
needs: [should_release]
45-
uses: apify/workflows/.github/workflows/python/type_check.yaml
47+
uses: apify/workflows/.github/workflows/python_type_check.yaml@main
4648

4749
unit_tests:
4850
name: Unit tests
4951
needs: [should_release]
50-
uses: apify/workflows/.github/workflows/python/unit_tests.yaml
51-
52-
async_docstrings:
53-
name: Async dostrings check
54-
uses: ./.github/workflows/_async_docstrings_check.yaml
52+
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
5553

5654
# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
5755
changelog_entry_check:
@@ -68,7 +66,7 @@ jobs:
6866
integration_tests:
6967
name: Integration tests
7068
needs: [should_release]
71-
uses: apify/workflows/.github/workflows/python/integration_tests.yaml
69+
uses: apify/workflows/.github/workflows/python_integration_tests.yaml@main
7270
secrets: inherit
7371

7472
publish_to_pypi:
@@ -103,7 +101,7 @@ jobs:
103101

104102
- name: Install Python dependencies
105103
run: |
106-
pipx install --python ${{ matrix.python-version }} poetry
104+
pipx install --python ${{ env.PYTHON_VERSION }} poetry
107105
make install-dev
108106
109107
- # Determine if this is a prerelease or latest release

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ build-api-reference:
6363
cd website && poetry run ./build_api_reference.sh
6464

6565
build-docs: build-api-reference
66-
cd website && yarn && yarn build
66+
cd website && npm clean-install && npm run build
6767

6868
run-docs: build-api-reference
6969
cd website && npm clean-install && npm run start

0 commit comments

Comments
 (0)