Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create test reporting for backend python tests #511

Merged
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
2 changes: 2 additions & 0 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ asmjs
asyncio
asyncpg
auditability
backendpython
bech
bkioshn
bluefireteam
Expand Down Expand Up @@ -78,6 +79,7 @@ Joaquín
jorm
jormungandr
Jörmungandr
junitxml
junitreport
Keyhash
keyserver
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/generate-allure-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion catalyst-gateway/tests/api_tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
__pycache__
__pycache__
junit-report.xml
5 changes: 4 additions & 1 deletion catalyst-gateway/tests/api_tests/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading