From 06b45dccb2492551cad63148b29039367563dbc7 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Fri, 7 Jun 2024 10:48:16 +0200 Subject: [PATCH] build: run weasyprint integration tests during build process --- .github/workflows/maven-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 2d05f55..12492f4 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -57,9 +57,10 @@ jobs: - name: Print settings.xml run: cat /home/runner/.m2/settings.xml - name: Install weasyprint - run: sudo apt install -y python3-pip libpango-1.0-0 libpangoft2-1.0-0 && python3 -m venv venv && source venv/bin/activate && pip install weasyprint && weasyprint --info + run: sudo apt install -y python3-pip libpango-1.0-0 libpangoft2-1.0-0 - name: Build with Maven - run: mvn --batch-mode -Dmaven-surefire-plugin.wpCommand=weasyprint clean package -P polarion2404,tests-with-weasyprint-cli + run: python3 -m venv venv && source venv/bin/activate && pip install weasyprint && weasyprint --info && mvn --batch-mode -Dmaven-surefire-plugin.wpCommand=weasyprint clean package + -P polarion2404,tests-with-weasyprint-cli - name: Extract artefact version id: artefact_version run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT