File tree Expand file tree Collapse file tree 4 files changed +27
-21
lines changed Expand file tree Collapse file tree 4 files changed +27
-21
lines changed Original file line number Diff line number Diff line change 55
55
56
56
- name : Install Python dependencies
57
57
run : |
58
- pipx install --python ${{ matrix.python-version }} poetry
58
+ pipx install --python ${{ env.PYTHON_VERSION }} poetry
59
59
make install-dev
60
60
61
61
- name : Build generated API reference
Original file line number Diff line number Diff line change @@ -2,26 +2,29 @@ name: Run code checks
2
2
3
3
on :
4
4
# Trigger code checks on opening a new pull request.
5
- pull_request_target :
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 :
6
8
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 :
9
+ # Trigger code checks on pushing to the master branch.
10
+ push :
11
+ branches :
12
+ - master
13
+ tags-ignore :
14
+ - " **"
12
15
13
16
jobs :
14
17
lint_check :
15
18
name : Lint check
16
- uses : apify/workflows/.github/workflows/python/lint_check .yaml
19
+ uses : apify/workflows/.github/workflows/python_lint_check .yaml@main
17
20
18
21
type_check :
19
22
name : Type check
20
- uses : apify/workflows/.github/workflows/python/type_check .yaml
23
+ uses : apify/workflows/.github/workflows/python_type_check .yaml@main
21
24
22
25
unit_tests :
23
26
name : Unit tests
24
- uses : apify/workflows/.github/workflows/python/unit_tests .yaml
27
+ uses : apify/workflows/.github/workflows/python_unit_tests .yaml@main
25
28
26
29
# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
27
30
changelog_entry_check :
35
38
36
39
docs_check :
37
40
name : Docs check
38
- uses : apify/workflows/.github/workflows/python/docs_check .yaml
41
+ uses : apify/workflows/.github/workflows/python_docs_check .yaml@main
39
42
40
43
integration_tests :
41
44
name : Integration tests
42
- uses : apify/workflows/.github/workflows/python/integration_tests.yaml
45
+ needs : [lint_check, type_check, unit_tests]
46
+ uses : apify/workflows/.github/workflows/python_integration_tests.yaml@main
43
47
secrets : inherit
Original file line number Diff line number Diff line change 1
1
name : Run release
2
2
3
3
on :
4
- # Push to master will publish a beta version
4
+ # Push to master will publish a beta version.
5
5
push :
6
6
branches :
7
7
- master
8
8
tags-ignore :
9
9
- " **"
10
- # A release via GitHub releases will publish a stable version
10
+
11
+ # A release via GitHub releases will publish a stable version.
11
12
release :
12
13
types : [published]
13
- # Workflow dispatch will publish whatever you choose
14
+
15
+ # Workflow dispatch will publish whatever you choose.
14
16
workflow_dispatch :
15
17
inputs :
16
18
release_type :
@@ -37,17 +39,17 @@ jobs:
37
39
lint_check :
38
40
name : Lint check
39
41
needs : [should_release]
40
- uses : apify/workflows/.github/workflows/python/lint_check .yaml
42
+ uses : apify/workflows/.github/workflows/python_lint_check .yaml@main
41
43
42
44
type_check :
43
45
name : Type check
44
46
needs : [should_release]
45
- uses : apify/workflows/.github/workflows/python/type_check .yaml
47
+ uses : apify/workflows/.github/workflows/python_type_check .yaml@main
46
48
47
49
unit_tests :
48
50
name : Unit tests
49
51
needs : [should_release]
50
- uses : apify/workflows/.github/workflows/python/unit_tests .yaml
52
+ uses : apify/workflows/.github/workflows/python_unit_tests .yaml@main
51
53
52
54
# TODO: remove this once https://github.com/apify/apify-sdk-python/issues/241 is resolved
53
55
changelog_entry_check :
64
66
integration_tests :
65
67
name : Integration tests
66
68
needs : [should_release]
67
- uses : apify/workflows/.github/workflows/python/integration_tests .yaml
69
+ uses : apify/workflows/.github/workflows/python_integration_tests .yaml@main
68
70
secrets : inherit
69
71
70
72
publish_to_pypi :
98
100
99
101
- name : Install Python dependencies
100
102
run : |
101
- pipx install --python ${{ matrix.python-version }} poetry
103
+ pipx install --python ${{ env.PYTHON_VERSION }} poetry
102
104
make install-dev
103
105
104
106
- # Determine if this is a prerelease or latest release
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ build-api-reference:
56
56
cd website && poetry run ./build_api_reference.sh
57
57
58
58
build-docs : build-api-reference
59
- cd website && yarn && yarn build
59
+ cd website && npm clean-install && npm run build
60
60
61
61
run-docs : build-api-reference
62
62
cd website && npm clean-install && npm run start
You can’t perform that action at this time.
0 commit comments