Skip to content

Commit

Permalink
feat: Add Allure reports for test results
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainbourgeois committed Dec 19, 2024
1 parent 0296375 commit ee075eb
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 16 deletions.
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.

0 comments on commit ee075eb

Please sign in to comment.