Skip to content

Commit ff7a342

Browse files
committed
Add test for checking XML against schema file with xmllint
1 parent 3744d77 commit ff7a342

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pull_request_ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,27 @@ on:
88
- release/*
99

1010
jobs:
11+
lint-xml:
12+
name: Check standard_names.xml against schema file
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.x"
22+
23+
- name: Install dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get -y install libxml2-utils
27+
28+
- name: Check for duplicate standard names, descriptions
29+
run: |
30+
xmllint --noout --schema standard_names_v1_0.xsd standard_names.xml
31+
1132
check-unique-standard-names:
1233
name: Check for duplicates in standard names
1334
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)