diff --git a/.config/dictionaries/project.dic b/.config/dictionaries/project.dic index 0343f9f365..95c8675ac7 100644 --- a/.config/dictionaries/project.dic +++ b/.config/dictionaries/project.dic @@ -11,6 +11,7 @@ asmjs asyncio asyncpg auditability +backendpython bech bkioshn bluefireteam @@ -78,6 +79,7 @@ Joaquín jorm jormungandr Jörmungandr +junitxml junitreport Keyhash keyserver diff --git a/.github/workflows/generate-allure-report.yml b/.github/workflows/generate-allure-report.yml index 9bd73285f9..fec4a0ca2d 100644 --- a/.github/workflows/generate-allure-report.yml +++ b/.github/workflows/generate-allure-report.yml @@ -71,6 +71,18 @@ jobs: target_flags: runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} artifact: "false" + + - name: Get backend python test report + uses: input-output-hk/catalyst-ci/actions/run@master + if: always() + continue-on-error: true + with: + earthfile: ./catalyst-gateway/tests/api_tests/ + flags: --allow-privileged + targets: test + target_flags: + runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} + artifact: "false" - name: Collect and upload test reports uses: actions/upload-artifact@v4 diff --git a/catalyst-gateway/tests/api_tests/.gitignore b/catalyst-gateway/tests/api_tests/.gitignore index ed8ebf583f..40f65ddf37 100644 --- a/catalyst-gateway/tests/api_tests/.gitignore +++ b/catalyst-gateway/tests/api_tests/.gitignore @@ -1 +1,2 @@ -__pycache__ \ No newline at end of file +__pycache__ +junit-report.xml \ No newline at end of file diff --git a/catalyst-gateway/tests/api_tests/Earthfile b/catalyst-gateway/tests/api_tests/Earthfile index 774241b5f0..c59267f905 100644 --- a/catalyst-gateway/tests/api_tests/Earthfile +++ b/catalyst-gateway/tests/api_tests/Earthfile @@ -22,5 +22,8 @@ test: --load cat-gateway:latest=(../../+package-cat-gateway-with-preprod-snapshot) \ --service cat-gateway \ --allow-privileged - RUN poetry run pytest -s + RUN poetry run pytest -s --junitxml=junit-report.xml + END + WAIT + SAVE ARTIFACT junit-report.xml AS LOCAL backendpython.junit-report.xml END