fix: uv run #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 Pytest Tests | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Install dependencies | |
run: | | |
uv sync | |
- name: Ensure browsers are installed | |
run: uv run python -m playwright install --with-deps | |
- name: Run your tests | |
run: uv run pytest --output=reports --screenshot=only-on-failure --junitxml=reports/junit.xml | |
- run: npx testbeats@latest publish --slack ${{ secrets.SLACK_MVP_URL }} --junit reports/junit.xml --ci-info --chart-test-summary | |
if: always() | |
env: | |
TEST_BEATS_API_KEY: ${{ secrets.TEST_BEATS_API_KEY }} | |
TEST_BEATS_PROJECT: "testbeats/examples" |