Skip to content

153 extend pytest html plus to GitHub marketplace for actions #8

153 extend pytest html plus to GitHub marketplace for actions

153 extend pytest html plus to GitHub marketplace for actions #8

Workflow file for this run

name: Reporterplus marketplace actions test
on:
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.13" ]
steps:
- name: 📥 Checkout code
uses: actions/checkout@v3
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 📦 Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: 📦 Install dependencies with Poetry
run: |
poetry lock
poetry install --with dev
- name: 🧪 Run selenium test and generate report using marketplace plugin
uses: reporterplus/pytest-html-plus-action@v1
with:
pytest-args: "--cov=pytest_html_plus tests/e2e/test_selenium.py --cov-report=term --reruns 1"
html-output: "report_output_selenium"
capture-screenshots: "all"
test-path: "tests/browser/test_selenium.py"
- name: 🧪 Run selenium test and generate report using marketplace plugin
uses: reporterplus/pytest-html-plus-action@v1
with:
pytest-args: "--cov=pytest_html_plus --cov-report=term --reruns 1"
html-output: "report_output_playwright"
capture-screenshots: "all"
test-path: "tests/browser/test_playwright.py"
- name: Upload reports
uses: actions/upload-artifact@v4
with:
name: reports-${{ github.job }}-${{ github.run_number }}-${{ matrix.python-version }}
path: |
report_output_playwright/
report_output_selenium/