Skip to content

Commit def39f3

Browse files
committed
ci: Limit scope of unittest to one python version
Limits scope of unittesting to one python version for both macOS and Windows. These types of workflows are particularly expensive and take a long time so running them on every PR / every push is a bit wasteful considering the value in signal between different python versions is probably negligible. Signed-off-by: Eli Uriegas <eliuriegasfb.com> ghstack-source-id: 0e44bf8 Pull Request resolved: #2256
1 parent 27dff6b commit def39f3

File tree

2 files changed

+8
-43
lines changed

2 files changed

+8
-43
lines changed

.circleci/config.yml

Lines changed: 0 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/regenerate.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,13 @@ def indent(indentation, data_list):
210210
return ("\n" + " " * indentation).join(yaml.dump(data_list).splitlines())
211211

212212

213+
def unittest_python_versions(os):
214+
return {
215+
"windows": PYTHON_VERSIONS[:1],
216+
"macos": PYTHON_VERSIONS[:1],
217+
"linux": PYTHON_VERSIONS,
218+
}.get(os)
219+
213220
def unittest_workflows(indentation=6):
214221
jobs = []
215222
jobs += build_download_job(None)
@@ -218,7 +225,7 @@ def unittest_workflows(indentation=6):
218225
if os_type == "macos" and device_type == "gpu":
219226
continue
220227

221-
for i, python_version in enumerate(PYTHON_VERSIONS):
228+
for i, python_version in enumerate(unittest_python_versions(os_type)):
222229
job = {
223230
"name": f"unittest_{os_type}_{device_type}_py{python_version}",
224231
"python_version": python_version,

0 commit comments

Comments
 (0)