diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b9ae7f712c7..f1d667be11a 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -58,5 +58,19 @@ jobs: API_ENDPOINT: "api.dev.firebolt.io" ACCOUNT_NAME: "firebolt" run: | - pytest -n 6 --dist loadgroup --timeout_method "signal" -o log_cli=true -o log_cli_level=INFO tests/integration - + pytest -n 6 --dist loadgroup --timeout_method "signal" -o log_cli=true -o log_cli_level=INFO tests/integration --alluredir=allure-results + + - name: Get Allure history + uses: actions/checkout@v2 + if: always() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: Allure Report + uses: firebolt-db/action-allure-report@v1 + if: always() + with: + github-key: ${{ secrets.GITHUB_TOKEN }} + test-type: integration diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index e65fc7fb265..00868668f2f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -39,8 +39,22 @@ jobs: - name: Run unit tests run: | - pytest --cov=src/ tests/unit --cov-report=xml + pytest --cov=src/ tests/unit --cov-report=xml --alluredir=allure-results + - name: Get Allure history + uses: actions/checkout@v2 + if: always() + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: Allure Report + uses: firebolt-db/action-allure-report@v1 + if: always() + with: + github-key: ${{ secrets.GITHUB_TOKEN }} + - name: Upload coverage report uses: actions/upload-artifact@v2 with: diff --git a/setup.cfg b/setup.cfg index 7bef79a1a55..cc209eb844a 100755 --- a/setup.cfg +++ b/setup.cfg @@ -45,6 +45,7 @@ where = src ciso8601 = ciso8601==2.2.0 dev = + allure-pytest==2.* devtools==0.7.0 mypy==0.910 pre-commit==2.15.0 diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index d9b278334b3..1b9e17fde8b 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -47,7 +47,7 @@ def global_fake_fs(request) -> None: if "nofakefs" in request.keywords: yield else: - with Patcher(): + with Patcher(additional_skip_names=["logger", "allure-pytest"]): yield