Prepare for 3.8.0 release by running a 3-way comparison with 3.8.0-rc2 and adjusting tests #640
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify Pull Request Labeling | |
on: | |
pull_request: | |
types: [opened, labeled, unlabeled, synchronize] | |
jobs: | |
check_pr_labels: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Verify PR Labels | |
shell: python | |
run: | | |
import json | |
labels = json.loads("""${{ toJson(github.event.pull_request.labels) }}""") | |
labels = [x['name'] for x in labels] | |
print("PR labels: {}".format(labels)) | |
expected_min_labels = ['NewTest', 'TestFix', 'NewTestForExisting', 'Other'] | |
if not any([x in expected_min_labels for x in labels]): | |
raise ValueError("Expected minimum one label in {}".format(expected_min_labels)) | |
if 'NewTest' in labels: | |
if sum([x in ['PendingOSM', 'AddedOSM'] for x in labels]) != 1: | |
raise ValueError("When using 'NewTest', you need to add exactly one of 'PendingOSM' or 'AddedOSM' as well") |