Skip to content

Commit

Permalink
Allure setup with api tests (#20)
Browse files Browse the repository at this point in the history
### To be filled by the PR creator:

* A brief description of the changes made - 

* Do we have clean latest run report attached with this PR?
  * [ ] Yes
  * [ ] No (Please explain why)

* Does the PR contain changes to any BP core file?
  * [ ] Yes (Needs approval from at least 2 people)
  * [ ] No

* Does the PR contain changes to modules shared with other teams?
* [ ] Yes (Needs approval from at least one of the other teams that use
the module)
  * [ ] No

* Is it
  * [ ] New Testcase
  * [ ] Fix


### To be filled by the PR reviewer:

* [ ] Verify the attached run report passed in GitHub Actions (Justify
if local run)

* General
    * [ ] Use the best strategy to locate the elements
    * [ ] Comments wherever the code is not readable by itself
    * [ ] Use of the right data structure for the use case
    * [ ] Reuse logic/functionality as much as possible
    * [ ] Cleanup of any test data that is generated by the tests
    * [ ] No static waits
  • Loading branch information
Tauqir Sarwar authored Mar 15, 2024
2 parents e33e1c3 + 5304beb commit 6dd6c1f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
if: ${{ always() }}

- name: Upload HTML run report in the Artifacts Folder
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.html_report }}
path: |
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
if: ${{ always() }}

- name: Upload HTML run report in the Artifacts Folder
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: |
Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/api_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
# Upload html results as GH artifact
- name: Upload pytest test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: |
Expand Down Expand Up @@ -100,10 +100,35 @@ jobs:
--gherkin-terminal-reporter \
--tags="$TAGS" \
--html=report.html \
--alluredir=allure-results
- name: Get Allure history
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

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

- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v3
with:
PERSONAL_TOKEN: ${{ secrets.PYTEST_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history

# Upload html results as GH artifact
- name: Upload pytest test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
if: ${{ always() }}

- name: Upload HTML run report in the Artifacts Folder
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.html_report }}
path: |
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
if: ${{ always() }}

- name: Upload HTML run report in the Artifacts Folder
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pytest-results
path: |
Expand Down

0 comments on commit 6dd6c1f

Please sign in to comment.