aboutsummaryrefslogtreecommitdiff
path: root/get_test_targets.py
diff options
context:
space:
mode:
Diffstat (limited to 'get_test_targets.py')
-rw-r--r--get_test_targets.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/get_test_targets.py b/get_test_targets.py
new file mode 100644
index 0000000..ce2080e
--- /dev/null
+++ b/get_test_targets.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+"""
+Extract the builds used in Github CI, so that we can run them locally
+"""
+import yaml
+
+
+with open('.github/workflows/test-builds.yml') as f:
+ github_configuration = yaml.safe_load(f)
+test_platforms = github_configuration\
+ ['jobs']['test_builds']['strategy']['matrix']['test-platform']
+print(' '.join(test_platforms))