aboutsummaryrefslogtreecommitdiff
path: root/get_test_targets.py
diff options
context:
space:
mode:
authorGeorgiy Bondarenko <69736697+nehilo@users.noreply.github.com>2021-03-04 20:54:23 +0300
committerGeorgiy Bondarenko <69736697+nehilo@users.noreply.github.com>2021-03-04 20:54:23 +0300
commite8701195e66f2d27ffe17fb514eae8173795aaf7 (patch)
tree9f519c4abf6556b9ae7190a6210d87ead1dfadde /get_test_targets.py
downloadkp3s-lgvl-e8701195e66f2d27ffe17fb514eae8173795aaf7.tar.xz
kp3s-lgvl-e8701195e66f2d27ffe17fb514eae8173795aaf7.zip
Initial commit
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))