-
Notifications
You must be signed in to change notification settings - Fork 50
41 lines (32 loc) · 1.27 KB
/
check-entangled-specs.yml
File metadata and controls
41 lines (32 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# This action checks that certain groups of specs have matching tags.
# The main use case is to ensure that signed specs have the same Version and
# Release tags as their unsigned counterparts
---
name: Spec Entanglement Mismatch Check
on:
workflow_dispatch:
permissions: read-all
jobs:
check:
name: Spec Entanglement Mismatch Check
runs-on: arc-runner-set
steps:
# Checkout the branch of our repo that triggered this action
- name: Workflow trigger checkout
uses: actions/checkout@v4
with:
persist-credentials: false
# We use the same major/minor version of Python that Azure Linux ships
- name: Setup Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Get Python dependencies
run: python3 -m pip install -r toolkit/scripts/requirements.txt
# Run unit test for check_entangled_specs.py before invoking it
- name: Unit test for spec entanglement check
run: PYTHONPATH=toolkit/scripts python3 toolkit/scripts/tests/test_check_entangled_specs.py
- name: Run spec entanglement checking script
run: python3 toolkit/scripts/check_entangled_specs.py .