Skip to content

Commit

Permalink
Add allure steps to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Aug 20, 2024
1 parent a5b9661 commit 51fdc25
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 4 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,42 @@ jobs:
- run: poetry install --no-root --all-extras
- run: poe lint
- run: poe build-develop
- run: poe test -s -o log_cli_level=DEBUG
- run: poe test -s --alluredir allure-results -o log_cli_level=DEBUG
# Time skipping doesn't yet support ARM
- if: ${{ !endsWith(matrix.os, '-arm') }}
run: poe test -s -o log_cli_level=DEBUG --workflow-environment time-skipping
run: poe test -s --alluredir allure-results -o log_cli_level=DEBUG --workflow-environment time-skipping
# Check cloud if proper target and not on fork
- if: ${{ matrix.cloudTestTarget && (github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-python') }}
run: poe test -s -o log_cli_level=DEBUG -k test_cloud_client
run: poe test -s --alluredir allure-results -o log_cli_level=DEBUG -k test_cloud_client
env:
TEMPORAL_CLIENT_CLOUD_API_KEY: ${{ secrets.TEMPORAL_CLIENT_CLOUD_API_KEY }}
TEMPORAL_CLIENT_CLOUD_API_VERSION: 2024-05-13-00
TEMPORAL_CLIENT_CLOUD_NAMESPACE: sdk-ci.a2dd6

# https://allurereport.org/docs/integrations-github/

- name: "Allure: load test report history"
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
ref: gh-pages
path: allure-data
- name: "Allure: build test report"
uses: simple-elf/[email protected]
if: always()
with:
gh_pages: allure-data
allure_history: allure-history
allure_results: allure-results
- name: "Allure: publish test report"
uses: peaceiris/actions-gh-pages@v4
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history

# Confirm protos are already generated properly with older protobuf
# library and run test with that older version. We must downgrade protobuf
# so we can generate 3.x and 4.x compatible API. We have to use older
Expand Down
32 changes: 31 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ types-protobuf = ">=3.20"
typing-extensions = "^4.2.0"

[tool.poetry.dev-dependencies]
allure-pytest = "^2.13.5"
cibuildwheel = "^2.19.0"
grpcio-tools = "^1.48.0"
mypy = "^1.0.0"
Expand Down

0 comments on commit 51fdc25

Please sign in to comment.