Browse Source

mavsdk_tests: add link back to github action

release/1.12
Julian Oes 4 years ago
parent
commit
2703a34900
  1. 19
      test/mavsdk_tests/mavsdk_test_runner.py

19
test/mavsdk_tests/mavsdk_test_runner.py

@ -497,7 +497,7 @@ class Tester:
print(" Could not find ulog log file to upload") print(" Could not find ulog log file to upload")
return return
if not os.getenv('GITHUB_WORKFLOW'): if not os.getenv('GITHUB_RUN_ID'):
print(" Upload only implemented for GitHub Actions CI") print(" Upload only implemented for GitHub Actions CI")
return return
@ -505,18 +505,17 @@ class Tester:
server = "https://logs.px4.io" server = "https://logs.px4.io"
result_str = "passing" if success else "failing"
payload = { payload = {
"type": "flightreport", "type": "flightreport",
"description": "SITL integration test with {} for {}: {}" "description": "SITL integration test - {}: '{}' -> {}"
.format(model, case, "passing" if success else "failing"), .format(model, case, result_str),
"feedback": "feedback":
"workflow: {}, ".format(os.getenv("GITHUB_WORKFLOW")) + "{}/{}/actions/runs/{}"
"run_id: {}, ".format(os.getenv("GITHUB_RUN_ID")) + .format(os.getenv("GITHUB_SERVER_URL"),
"repository: {}, ".format(os.getenv("GITHUB_REPOSITORY")) + os.getenv("GITHUB_REPOSITORY"),
"ref: {}, ".format(os.getenv("GITHUB_REF")) + os.getenv("GITHUB_RUN_ID")),
"model: {}, ".format(model) +
"case: {}, ".format(case) +
"pass: {}".format("true" if success else "false"),
"email": "", "email": "",
"source": "CI", "source": "CI",
"videoUrl": "", "videoUrl": "",

Loading…
Cancel
Save