From 10d26f71e516ef008c34d8888a4f15d108130a1a Mon Sep 17 00:00:00 2001 From: desaimg1 Date: Thu, 28 Nov 2024 10:26:11 +0530 Subject: [PATCH] commit --- .github/workflows/publish.yml | 2 ++ do.py | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 765e54426..9474ebfb4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,10 +42,12 @@ jobs: - name: Send Coverage Email run: | ${{steps.path.outputs.pythonv}} do.py coverage + - name: Generate Allure report run: | source ~/.profile ${{steps.path.outputs.pythonv}} do.py generate_allure_report + - name: Deploy report to Github Pages if: always() uses: peaceiris/actions-gh-pages@v2 diff --git a/do.py b/do.py index fefa76359..ea2cfe1fd 100644 --- a/do.py +++ b/do.py @@ -74,14 +74,20 @@ def test(card="novus100g"): "--username=" + username, "--psd='" + psd + "'", "tests", - '-m "not e2e and not l1_manual and not uhd"', - #'-m "runonly"', + #'-m "not e2e and not l1_manual and not uhd"', + '-m "runonly"', "--cov=./snappi_ixnetwork --cov-report term", " --cov-report html:cov_report", " -o junit_logging=all --junitxml=allure-results/report-pytest.xml" ] print(args) + if os.path.exists("allure-results"): + run(["rm -rf allure-results"]) + if os.path.exists("allure-report"): + run(["mkdir -p allure-results/history", + "cp -r allure-report/history/* allure-results/history/"]) + run( [ py() + " -m pip install pytest-cov",