@@ -22,6 +22,7 @@ defaults:
22
22
env :
23
23
FREEZE_REQUIREMENTS : 1
24
24
TORCH_URL : " https://download.pytorch.org/whl/cpu/torch_stable.html"
25
+ PYTHON_VER : " 3.8"
25
26
26
27
jobs :
27
28
32
33
33
34
34
35
upload-packages :
35
- runs-on : ubuntu-20 .04
36
+ runs-on : ubuntu-22 .04
36
37
needs : build-packages
37
38
if : github.event_name == 'release'
38
39
steps :
@@ -50,11 +51,14 @@ jobs:
50
51
51
52
52
53
release-version :
53
- runs-on : ubuntu-20 .04
54
+ runs-on : ubuntu-22 .04
54
55
outputs :
55
56
tag : ${{ steps.lai-package.outputs.version }}
56
57
steps :
57
58
- uses : actions/checkout@v3
59
+ - uses : actions/setup-python@v4
60
+ with :
61
+ python-version : ${{ env.PYTHON_VER }}
58
62
- name : install Package
59
63
run : |
60
64
pip install . -f ${TORCH_URL}
@@ -65,15 +69,15 @@ jobs:
65
69
66
70
67
71
signaling :
68
- runs-on : ubuntu-20 .04
72
+ runs-on : ubuntu-22 .04
69
73
needs : [release-version]
70
74
if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
71
75
env :
72
76
TAG : ${{ needs.release-version.outputs.tag }}
73
77
steps :
74
78
- uses : actions/setup-python@v4
75
79
with :
76
- python-version : 3.8
80
+ python-version : ${{ env.PYTHON_VER }}
77
81
- uses : actions/checkout@v3
78
82
with :
79
83
repository : gridai/base-images
@@ -102,7 +106,7 @@ jobs:
102
106
103
107
104
108
waiting :
105
- runs-on : ubuntu-20 .04
109
+ runs-on : ubuntu-22 .04
106
110
needs : [release-version, signaling]
107
111
env :
108
112
TAG : ${{ needs.release-version.outputs.tag }}
@@ -111,7 +115,7 @@ jobs:
111
115
- uses : actions/checkout@v3
112
116
- uses : actions/setup-python@v4
113
117
with :
114
- python-version : 3.8
118
+ python-version : ${{ env.PYTHON_VER }}
115
119
- run : pip install gitpython
116
120
- name : Delay releasing
117
121
run : |
@@ -130,7 +134,7 @@ jobs:
130
134
131
135
132
136
pre-publish-packages :
133
- runs-on : ubuntu-20 .04
137
+ runs-on : ubuntu-22 .04
134
138
needs : build-packages
135
139
if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
136
140
strategy :
@@ -155,7 +159,7 @@ jobs:
155
159
156
160
157
161
publish-packages :
158
- runs-on : ubuntu-20 .04
162
+ runs-on : ubuntu-22 .04
159
163
needs : [build-packages, waiting]
160
164
if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
161
165
strategy :
0 commit comments