Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

config.yml 5.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
  1. version: 2.1
  2. parameters:
  3. orb_version:
  4. type: string
  5. description: Deci ai ORB version https://circleci.com/developer/orbs/orb/deci-ai/circleci-common-orb
  6. default: "4.1.3"
  7. # default: "dev:alpha"
  8. orbs:
  9. deci-common: deci-ai/circleci-common-orb@<< pipeline.parameters.orb_version >>
  10. # This filter operates on SemVer2 tags only
  11. release_tag_filter: &release_tag_filter
  12. filters:
  13. branches:
  14. ignore: /.*/
  15. tags:
  16. only: /^\d+\.\d+\.\d+$/
  17. release_candidate_filter: &release_candidate_filter
  18. filters:
  19. branches:
  20. only: hotfix_pycoco_tools_req
  21. jobs:
  22. build:
  23. parameters:
  24. py_version:
  25. type: string
  26. default: latest
  27. package_name:
  28. type: string
  29. docker:
  30. - image: cimg/python:<< parameters.py_version >>
  31. resource_class: large
  32. steps:
  33. - deci-common/checkout_and_skip_build:
  34. check_version_file: true
  35. - deci-common/get_persisted_version_info
  36. - run:
  37. name: add requirements.txt to source code
  38. command: |
  39. cp requirements.txt src/super_gradients/requirements.txt
  40. - run:
  41. name: install python dependencies
  42. command: |
  43. python3 -m venv venv
  44. . venv/bin/activate
  45. python3 -m pip install pip==22.0.4
  46. cat requirements.txt | cut -f1 -d"#" | xargs -n 1 -L 1 pip install --progress-bar off
  47. - run:
  48. name: edit package version
  49. command: |
  50. echo "${NEW_VERSION}" > version.txt
  51. cat version.txt
  52. - run:
  53. name: setup custom environment variables
  54. command: |
  55. echo 'export PYTHONPATH=/home/circleci/super_gradients' >> $BASH_ENV
  56. - run:
  57. name: install package
  58. no_output_timeout: 30m
  59. command: |
  60. . venv/bin/activate
  61. python3 -m pip install .
  62. - run:
  63. name: run tests with coverage
  64. no_output_timeout: 30m
  65. command: |
  66. . venv/bin/activate
  67. coverage run --source=super_gradients -m unittest tests/deci_core_unit_test_suite_runner.py
  68. coverage report
  69. coverage html # open htmlcov/index.html in a browser
  70. - store_artifacts:
  71. path: htmlcov
  72. - store_artifacts:
  73. path: ~/sg_logs
  74. release_candidate:
  75. parameters:
  76. py_version:
  77. type: string
  78. docker:
  79. - image: cimg/python:<< parameters.py_version >>
  80. steps:
  81. - deci-common/checkout_and_skip_build:
  82. check_version_file: false
  83. - run:
  84. name: edit package version
  85. command: |
  86. echo 3.0.1e1 > version.txt
  87. - deci-common/pip_upload_package_codeartifact_dev:
  88. codeartifact_repository: "deci-packages"
  89. - deci-common/pip_test_package_installation_codeartifact_dev:
  90. package_name: "super-gradients"
  91. version: 3.0.1e1
  92. release_version:
  93. parameters:
  94. py_version:
  95. type: string
  96. docker:
  97. - image: cimg/python:<< parameters.py_version >>
  98. steps:
  99. - deci-common/checkout_and_skip_build:
  100. check_version_file: true
  101. - run:
  102. name: add requirements.txt to source code
  103. command: |
  104. cp requirements.txt src/super_gradients/requirements.txt
  105. - run:
  106. name: edit package version
  107. command: |
  108. echo $CIRCLE_TAG > version.txt
  109. - deci-common/pip_upload_package_codeartifact_all_accounts:
  110. codeartifact_repository: "deci-packages"
  111. - deci-common/pip_test_package_installation_codeartifact_dev:
  112. package_name: "super-gradients"
  113. version: $CIRCLE_TAG
  114. - deci-common/pip_test_package_installation_codeartifact_prod:
  115. package_name: "super-gradients"
  116. version: $CIRCLE_TAG
  117. - deci-common/pip_upload_package_codeartifact_prod:
  118. codeartifact_repository: "deci-toolkit"
  119. - deci-common/git_commit_and_tag:
  120. version: $CIRCLE_TAG
  121. delete_remote_tag_before_tagging: true
  122. - deci-common/tag_as:
  123. tag_name: "stable"
  124. delete_remote: true
  125. - deci-common/github_create_release:
  126. github_cli_token: $GITHUB_CLI_TOKEN
  127. directory_to_cd_into: "."
  128. tag: $CIRCLE_TAG
  129. notes: "This GitHub Release was done automatically by CircleCI"
  130. workflows:
  131. release:
  132. jobs:
  133. - deci-common/persist_version_info:
  134. <<: *release_tag_filter
  135. - deci-common/codeartifact_login:
  136. name: "login_to_codeartifact_release"
  137. repo_name: "deci-packages"
  138. <<: *release_tag_filter
  139. - build:
  140. name: "build3.7"
  141. py_version: "3.7"
  142. package_name: "super-gradients"
  143. requires:
  144. - deci-common/persist_version_info
  145. - login_to_codeartifact_release
  146. <<: *release_tag_filter
  147. - release_version:
  148. py_version: "3.7"
  149. requires:
  150. - "build3.7"
  151. <<: *release_tag_filter
  152. - deci-common/pip_upload_package_from_codeartifact_to_global_pypi:
  153. package_name: "super-gradients"
  154. name: "upload_super_gradients_to_pypi"
  155. version: $CIRCLE_TAG
  156. requires:
  157. - "release_version"
  158. context:
  159. - pypi-public
  160. <<: *release_tag_filter
  161. build_and_deploy:
  162. jobs:
  163. - deci-common/persist_version_info:
  164. branch: << pipeline.git.branch >>
  165. - deci-common/codeartifact_login:
  166. repo_name: "deci-packages"
  167. - build:
  168. name: "build3.7"
  169. py_version: "3.7"
  170. package_name: "super-gradients"
  171. requires:
  172. - deci-common/persist_version_info
  173. - deci-common/codeartifact_login
  174. - release_candidate: # happens on merge
  175. py_version: "3.7"
  176. requires:
  177. - "build3.7"
  178. <<: *release_candidate_filter
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...