@@ -19,11 +19,12 @@ concurrency:
19
19
20
20
jobs :
21
21
# Job to run integration tests from the main repository.
22
- integration_tests_on_main :
22
+ integration_tests :
23
23
name : Integration tests
24
24
runs-on : ubuntu-latest
25
25
# Run this only for PRs from the main repository or for pushes to master. Skip otherwise.
26
26
if : github.event.pull_request.head.repo.owner.login == 'apify' || github.ref == 'refs/heads/master'
27
+
27
28
strategy :
28
29
matrix :
29
30
python-version : ${{ fromJSON(inputs.python-versions)}}
50
51
run : make INTEGRATION_TESTS_CONCURRENCY=8 integration-tests
51
52
env :
52
53
APIFY_TEST_USER_API_TOKEN : ${{ secrets.APIFY_TEST_USER_PYTHON_SDK_API_TOKEN }}
53
-
54
- # Job to request approval before running integration tests for PRs from forks.
55
- integration_tests_on_fork_approval :
56
- name : Approve integration tests for PRs from forks
57
- runs-on : ubuntu-latest
58
- # Run this only for PRs from forks. Skip otherwise.
59
- if : github.event.pull_request.head.repo.owner.login != 'apify' && github.ref != 'refs/heads/master'
60
- environment :
61
- name : fork-pr-integration-tests
62
- url : ${{ github.event.pull_request.html_url }}
63
- steps :
64
- - name : Await approval
65
- run : echo "Waiting for approval to run integration tests for fork PR."
66
-
67
- # Job to run integration tests for PRs from forks, only after manual approval.
68
- integration_tests_on_fork :
69
- name : Integration tests for PRs from forks
70
- needs : integration_tests_on_fork_approval
71
- # Run this only for PRs from forks. Skip otherwise.
72
- if : github.event.pull_request.head.repo.owner.login != 'apify' && github.ref != 'refs/heads/master'
73
- runs-on : ubuntu-latest
74
- strategy :
75
- matrix :
76
- python-version : ${{ fromJSON(inputs.python-versions)}}
77
- max-parallel : 1 # No parallel tests to avoid overshooting limits.
78
-
79
- steps :
80
- - name : Checkout repository
81
- uses : actions/checkout@v4
82
-
83
- - name : Set up Python ${{ matrix.python-version }}
84
- uses : actions/setup-python@v5
85
- with :
86
- python-version : ${{ matrix.python-version }}
87
-
88
- - name : Set up Python ${{ matrix.python-version }}
89
- uses : actions/setup-python@v5
90
- with :
91
- python-version : ${{ matrix.python-version }}
92
-
93
- - name : Set up uv package manager
94
- uses : astral-sh/setup-uv@v6
95
- with :
96
- python-version : ${{ matrix.python-version }}
97
-
98
- - name : Run integration tests
99
- run : make INTEGRATION_TESTS_CONCURRENCY=8 integration-tests
100
- env :
101
- APIFY_TEST_USER_API_TOKEN : ${{ secrets.APIFY_TEST_USER_PYTHON_SDK_API_TOKEN }}
0 commit comments