Add support for search tests by error logs #133
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Reporterplus marketplace actions test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - "[0-9]+\\.[0-9]+\\.[0-9]+" | |
| 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 and install playwright | |
| run: | | |
| poetry lock | |
| poetry install --with dev | |
| poetry run playwright install --with-deps | |
| - name: 🧪 Run playwright test and generate report using marketplace plugin | |
| uses: reporterplus/pytest-html-plus-action@v2 | |
| with: | |
| htmloutput: "report_output_playwright" | |
| capturescreenshots: "all" | |
| testpath: "tests/browser/test_playwright.py" | |
| usepoetry: "true" | |
| xmlreport: "report.xml" | |
| gitbranch: "$(git rev-parse --abbrev-ref HEAD)" | |
| - name: Upload reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: reports-${{ github.job }}-${{ github.run_number }}-${{ matrix.python-version }} | |
| path: | | |
| report_output_playwright/ | |