Use regex to auto-detect QA Sphere markers in test names #3
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: Playwright Tests | |
| permissions: | |
| contents: read | |
| checks: write | |
| id-token: write | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Install Playwright browsers | |
| run: playwright install --with-deps | |
| - name: Create .env file | |
| run: echo "DEMO_BASE_URL=https://hypersequent.github.io/bistro/" > .env | |
| - name: Run Playwright tests | |
| run: pytest --browser chromium -v | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: test-results/ | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: junit-results | |
| path: junit-results/ | |
| - name: Publish JUnit Report | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: "junit-results/*.xml" |