Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
desaimg1 committed Nov 28, 2024
1 parent 583db84 commit 10d26f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 10d26f7

Please sign in to comment.