From 60b69b93cb6c07c155ee933c3ba7a55de284c503 Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Tue, 3 Nov 2020 18:41:10 +0545 Subject: [PATCH] Add flaky-service (#4834) Use master branch for flaky-service Generate TAP results during pytest --- .github/workflows/tests.yaml | 13 ++++++++++++- setup.py | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c4f768b45..7a108d996 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -60,9 +60,20 @@ jobs: mkdir -p scripts/ci echo "$GS_CREDS_JSON" > scripts/ci/gcp-creds.json - name: run tests - run: python -m tests -ra --cov-report=xml --cov-report=term + run: python -m tests -ra --cov-report=xml --cov-report=term --tap-combined - name: upload coverage report uses: codecov/codecov-action@v1.0.13 with: file: ./coverage.xml fail_ci_if_error: true + - name: Post TAP + # Running custom fork with an option, that does not fail CI on error + uses: skshetry/flaky-service/packages/action@master + if: ${{ always() }} + with: + file-path: ${{github.workspace}}/testresults.tap + repo-token: ${{ secrets.GITHUB_TOKEN }} + os: ${{runner.os}} + matrix: ${{toJson(matrix)}} + repo-description: ${{github.event.repository.description}} + fail_ci_if_error: false diff --git a/setup.py b/setup.py index 4af5f42a6..861121c9b 100644 --- a/setup.py +++ b/setup.py @@ -116,6 +116,7 @@ tests_requirements = [ "pytest-xdist>=1.26.1", "pytest-mock==1.11.2", "pytest-lazy-fixture", + "pytest-tap", "flaky>=3.5.3", "mock>=3.0.0", "xmltodict>=0.11.0",