-
Notifications
You must be signed in to change notification settings - Fork 17
71 lines (54 loc) · 1.82 KB
/
pull_request_ci.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Pull request checks
on:
pull_request:
workflow_dispatch:
jobs:
check-unique-standard-names:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install xmllint
run: |
sudo apt-get update
sudo apt-get -y install libxml2-utils
- name: Check for duplicate standard names
run: tools/check_xml_unique.py standard_names.xml
check-name-rules:
name: Check standard names against rules
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
# Install dependencies
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install libxml2-utils
- name: Checks standard names against character rules
run: |
python3 tools/check_name_rules.py -s standard_names.xml
check-rerendered-markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install xmllint
run: |
sudo apt-get update
sudo apt-get -y install libxml2-utils
- name: Check markdown has been rerendered
run: |
# Checks if the saved markdown matches freshly rendered markdown.
# If this fails you have likely forgotten to rerun the write script
# after adding a new name, or updating its description.
checksum=$(sha256sum Metadata-standard-names.md)
tools/write_standard_name_table.py standard_names.xml
test "$checksum" = "$(sha256sum Metadata-standard-names.md)"