1
- name : Check & Release
1
+ name : Run release
2
2
3
3
on :
4
4
# Push to master will publish a beta version
@@ -28,41 +28,43 @@ jobs:
28
28
name : Check whether to release
29
29
if : (!startsWith(github.event.head_commit.message, 'docs:') || github.event_name == 'workflow_dispatch')
30
30
runs-on : ubuntu-latest
31
+ env :
32
+ PYTHON_VERSION : 3.12
31
33
steps :
32
34
- name : Dummy step
33
35
run : true
34
36
35
- lint_and_type_checks :
36
- name : Run lint and type_checks
37
+ linting :
38
+ name : Run linting
37
39
needs : [should_release]
38
- uses : ./.github/workflows/lint_and_type_checks .yaml
40
+ uses : ./.github/workflows/_linting .yaml
39
41
40
- unit_tests :
41
- name : Run unit tests
42
+ type_checking :
43
+ name : Run type checking
42
44
needs : [should_release]
43
- uses : ./.github/workflows/unit_tests .yaml
45
+ uses : ./.github/workflows/_type_checking .yaml
44
46
45
- check_async_docstrings :
46
- name : Check whether async dostrings are up to date
47
+ unit_tests :
48
+ name : Run unit tests
47
49
needs : [should_release]
48
- uses : ./.github/workflows/_check_async_docstrings .yaml
50
+ uses : ./.github/workflows/_unit_tests .yaml
49
51
50
52
integration_tests :
51
53
name : Run integration tests
52
54
needs : [should_release]
53
- uses : ./.github/workflows/integration_tests .yaml
55
+ uses : ./.github/workflows/_integration_tests .yaml
54
56
secrets : inherit
55
57
56
58
publish_to_pypi :
57
59
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]
59
61
runs-on : ubuntu-latest
60
62
permissions :
61
63
contents : write
62
64
id-token : write
63
65
environment :
64
66
name : pypi
65
- url : https://pypi.org/p /apify-client
67
+ url : https://pypi.org/project /apify-client/
66
68
67
69
steps :
68
70
- name : Checkout repository
@@ -71,11 +73,11 @@ jobs:
71
73
- name : Set up Python
72
74
uses : actions/setup-python@v5
73
75
with :
74
- python-version : 3.8
76
+ python-version : ${{ env.PYTHON_VERSION }}
75
77
76
78
- name : Install dependencies
77
79
run : |
78
- pipx install poetry
80
+ pipx install --python ${{ matrix.python-version }} poetry
79
81
make install-dev
80
82
81
83
- # Determine if this is a prerelease or latest release
0 commit comments