From 1a92e6af0ac0f316a585bae23df0a9c7f1b1545f Mon Sep 17 00:00:00 2001 From: Ashik Kumar Billava Padmaiah Date: Thu, 21 Sep 2023 20:57:30 +0530 Subject: [PATCH] Fix the workflow --- .../workflows/{ci.yml => pytest-html-report.yml} | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) rename .github/workflows/{ci.yml => pytest-html-report.yml} (86%) diff --git a/.github/workflows/ci.yml b/.github/workflows/pytest-html-report.yml similarity index 86% rename from .github/workflows/ci.yml rename to .github/workflows/pytest-html-report.yml index 49208c8..6c0f90f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/pytest-html-report.yml @@ -1,5 +1,5 @@ # The name of the workflow as it will appear in the "Actions" tab of the GitHub repository -name: Run tests +name: Pytest and HTML Report # Specifies the trigger for this workflow on: @@ -49,16 +49,14 @@ jobs: path: ./tests/ # Execute tests - - name: Run tests + - name: Run pytest with HTML report run: > python3 -m pytest -v --gherkin-terminal-reporter --reruns 1 --reruns-delay 1 - --tags="${{ github.event.inputs.tags }}" -s --color=yes --html=test_report.html --self-contained-html + --tags="${{ github.event.inputs.tags }}" -s --color=yes --html=reports/test-report.html - # Upload html result as artifact - - name: Upload pytest test results + # Upload html report as artifact + - name: Upload HTML report uses: actions/upload-artifact@v3 with: - name: pytest-results - path: | - ./tests/output/reports/ - if: ${{ always() }} + name: test-report + path: reports/test-report.html