forked from iterorganization/IMAS-Data-Dictionary
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.05 KB
/
test.yml
File metadata and controls
39 lines (36 loc) · 1.05 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
name: test
on: push
jobs:
build-and-test-with-make:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install java and SaxonHE
run: |
sudo apt update
sudo apt install -y libsaxonhe-java
- name: Make
run: |
export CLASSPATH=/usr/share/java/Saxon-HE.jar
make
build-and-test-with-python:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
# until saxonche is available in 3.13
# https://saxonica.plan.io/issues/6561
python-version: "<3.13"
- name: Install python dependencies
run: pip install setuptools_scm saxonche
- name: Generate DD and validation
run: python generate.py
- name: Validation results
run: grep -i -w Error dd_data_dictionary_validation.txt && exit 1 || grep valid dd_data_dictionary_validation.txt