Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ jobs:
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven
- name: Validate documentation POM
run: |
python - <<'PY'
import xml.etree.ElementTree as ET

ns = {'m': 'http://maven.apache.org/POM/4.0.0'}
root_version = ET.parse('pom.xml').findtext('m:version', namespaces=ns)
docs_parent = ET.parse('wayang-docs/pom.xml').findtext('m:parent/m:version', namespaces=ns)
if docs_parent != root_version:
raise SystemExit(f'Documentation parent {docs_parent} does not match root {root_version}')
PY
./mvnw validate -B -Pweb-documentation -pl wayang-docs
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -67,4 +79,4 @@ jobs:
- name: Run Maven Unit tests
run: ./mvnw clean verify -B -Dmaven.test.skip=false -Dwayang.configuration=file:$(pwd)/tools/test/config/wayang.properties
- name: Run Python Unit tests
run: pytest -ra --config tools/test/config/wayang.properties python/src/pywy/tests/
run: pytest -ra --config tools/test/config/wayang.properties python/src/pywy/tests/
2 changes: 1 addition & 1 deletion wayang-docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<parent>
<artifactId>wayang</artifactId>
<groupId>org.apache.wayang</groupId>
<version>1.1.1-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<artifactId>wayang-docs</artifactId>
Expand Down
Loading