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: Add Allure reports for test results #501

Merged
merged 1 commit into from
Dec 20, 2024
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
4 changes: 3 additions & 1 deletion .github/workflows/ci_pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: CI workflow on push

on:
push:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: '0 2 * * *'

Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/dependabot_pr.yaml

This file was deleted.

26 changes: 25 additions & 1 deletion .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,31 @@ jobs:
sudo microk8s kubectl auth can-i create network-attachment-definitions

- name: Run integration tests
run: tox -vve integration
run: tox -vve integration -- --alluredir allure-results

- name: Load test report history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

- name: Build test report
uses: simple-elf/[email protected]
if: always()
with:
gh_pages: gh-pages
allure_history: allure-history
allure_results: allure-results

- name: Publish test report
uses: peaceiris/actions-gh-pages@v3
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: allure-history

- name: Gather logs
if: failure()
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
requires-python = ">=3.10"

dependencies = [
"allure-pytest",
"codespell",
"jinja2",
"juju",
Expand Down
37 changes: 37 additions & 0 deletions uv.lock

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

Loading