get_test_targets.py 474 B

123456789101112131415
  1. #!/usr/bin/env python
  2. """
  3. Extract the builds used in Github CI, so that we can run them locally
  4. """
  5. import yaml
  6. # Set the yaml file to parse
  7. yaml_file = '.github/workflows/ci-build-tests.yml'
  8. # Parse the yaml file, and load it into a dictionary (github_configuration)
  9. with open(yaml_file) as f:
  10. github_configuration = yaml.safe_load(f)
  11. # Print out the test platforms
  12. print(' '.join(github_configuration['jobs']['test_builds']['strategy']['matrix']['test-platform']))