From b0d9bfd32af4fc1fbbdc676a3e6141b760e59934 Mon Sep 17 00:00:00 2001 From: Sufiyan Date: Wed, 2 Oct 2024 13:32:05 +0530 Subject: [PATCH] Add CI step to upload HTML test report as artifact --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4a86d5..de1dcba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: run: pip install -r requirements.txt - name: Run contract as tests with Specmatic Python working-directory: main - run: coverage run --branch -m pytest test -v -s --junitxml contract-test-reports/TEST-junit-jupiter.xml + run: coverage run --branch -m pytest test/test_contract_with_api_coverage.py -v -s --junitxml contract-test-reports/TEST-junit-jupiter.xml - name: Publish contract test report uses: mikepenz/action-junit-report@v4 if: always() @@ -45,3 +45,8 @@ jobs: with: name: ${{matrix.os}}-coverage-report path: main/coverage-report + - name: Upload HTML Test Report + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.os }}-html-report + path: main/build/reports/specmatic/html