Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest --html=report.html, is working locally, but not creating report in GIt repository with help of GitHub Action #579

Open
autotaskit opened this issue Jan 3, 2023 · 1 comment
Labels
needs more info Issue specific label. More information is needed to assist the issue creator.

Comments

@autotaskit
Copy link

autotaskit commented Jan 3, 2023

pytest --html=report.html, is working locally, but not creating report in GIt repository with help of GitHub Action

in Github action, im expecting report to get created in root directory. but nothing is getting created. can you help?

Following is my yml file 👍
name: Test Execution for OrangeHRM - Demo Environment
on:
schedule:

  • cron: '20 * * * *'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
  uses: actions/setup-python@v3
  with:
    python-version: '3.x'
- name: Install dependencies
  run: |
     python -m pip install --upgrade pip
     pip install setuptools wheel twine
     pip install selenium
     pip install pytest
     pip install PyGithub
     pip install pytest-html
     pip install allure-pytest
     pip install pytest-github-report
     pip install webdriver-manager
     pip install pytest-failed-screenshot
     pip install pytest-metadata
     pip install pytest-cov
- name: Test Execution after 20 mins interval
  run: |
     pytest --html=report.html
@BeyondEvil
Copy link
Contributor

Are you getting an error?

How do you know it doesn't create the report?

@BeyondEvil BeyondEvil added the needs more info Issue specific label. More information is needed to assist the issue creator. label Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Issue specific label. More information is needed to assist the issue creator.
Projects
None yet
Development

No branches or pull requests

2 participants