jobs:
build-test:
name: Build & unit tests & sanity check
- runs-on: macOS-latest
+ # https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#github-hosted-runners
+ runs-on: [ macOS-latest, macos-11.0 ]
steps:
- name: Checkout resolver code
elif response.status_code == 200:
data = json.loads(response.content.decode('utf-8'))
try:
- run = data['workflow_runs'][0]
- conclusion = run['conclusion']
- html_url = run['html_url']
- commit_sha = run['head_sha']
+ for i in range(0, 1): # two runs ATM
+ run = data['workflow_runs'][i]
+ conclusion = run['conclusion']
+ html_url = run['html_url']
+ commit_sha = run['head_sha']
except (KeyError, IndexError):
time.sleep(POLL_DELAY)
continue