Skip to content

Commit 7e02f7c

Browse files
committed
Add allure steps to CI workflow
1 parent a5b9661 commit 7e02f7c

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

Diff for: .github/workflows/ci.yml

+27-3
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,42 @@ jobs:
5959
- run: poetry install --no-root --all-extras
6060
- run: poe lint
6161
- run: poe build-develop
62-
- run: poe test -s -o log_cli_level=DEBUG
62+
- run: poe test -s --alluredir allure-results -o log_cli_level=DEBUG
6363
# Time skipping doesn't yet support ARM
6464
- if: ${{ !endsWith(matrix.os, '-arm') }}
65-
run: poe test -s -o log_cli_level=DEBUG --workflow-environment time-skipping
65+
run: poe test -s --alluredir allure-results -o log_cli_level=DEBUG --workflow-environment time-skipping
6666
# Check cloud if proper target and not on fork
6767
- if: ${{ matrix.cloudTestTarget && (github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-python') }}
68-
run: poe test -s -o log_cli_level=DEBUG -k test_cloud_client
68+
run: poe test -s --alluredir allure-results -o log_cli_level=DEBUG -k test_cloud_client
6969
env:
7070
TEMPORAL_CLIENT_CLOUD_API_KEY: ${{ secrets.TEMPORAL_CLIENT_CLOUD_API_KEY }}
7171
TEMPORAL_CLIENT_CLOUD_API_VERSION: 2024-05-13-00
7272
TEMPORAL_CLIENT_CLOUD_NAMESPACE: sdk-ci.a2dd6
7373

74+
# https://allurereport.org/docs/integrations-github/
75+
76+
- name: "Allure: load test report history"
77+
uses: actions/checkout@v4
78+
if: always()
79+
continue-on-error: true
80+
with:
81+
ref: gh-pages
82+
path: allure-data
83+
- name: "Allure: build test report"
84+
uses: simple-elf/[email protected]
85+
if: always()
86+
with:
87+
gh_pages: allure-data
88+
allure_history: allure-history
89+
allure_results: allure-results
90+
- name: "Allure: publish test report"
91+
uses: peaceiris/actions-gh-pages@v4
92+
if: always()
93+
with:
94+
github_token: ${{ secrets.GITHUB_TOKEN }}
95+
publish_branch: gh-pages
96+
publish_dir: allure-history
97+
7498
# Confirm protos are already generated properly with older protobuf
7599
# library and run test with that older version. We must downgrade protobuf
76100
# so we can generate 3.x and 4.x compatible API. We have to use older

Diff for: pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ types-protobuf = ">=3.20"
4141
typing-extensions = "^4.2.0"
4242

4343
[tool.poetry.dev-dependencies]
44+
allure-pytest = "^2.13.5"
4445
cibuildwheel = "^2.19.0"
4546
grpcio-tools = "^1.48.0"
4647
mypy = "^1.0.0"

0 commit comments

Comments
 (0)