feat(api): replace reqres.in with restful-api.dev (TC-API-007–014) #1
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: UI Tests | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "tests/ui/**" | |
| - "conftest.py" | |
| - "requirements.txt" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "tests/ui/**" | |
| - "conftest.py" | |
| - "requirements.txt" | |
| jobs: | |
| ui-tests: | |
| name: UI Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Install Playwright browsers | |
| run: playwright install chromium --with-deps | |
| - name: Run UI tests | |
| run: pytest tests/ui/ -m ui -v | |
| - name: Upload UI report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: ui-report | |
| path: report.html |