Release 0.7.2 #11
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: End to End Test | |
| on: [push, pull_request] | |
| permissions: | |
| contents: write | |
| jobs: | |
| run: | |
| name: End to End Test with Playwright | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: ".python-version" | |
| - name: Install the project | |
| run: uv sync --all-extras --dev --frozen | |
| - name: Install Playwright browsers | |
| run: uv run playwright install | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-browsers-week-${{ env.CACHE_WEEK }} | |
| restore-keys: | | |
| ${{ runner.os }}-playwright-browsers-week- | |
| - name: Run tests | |
| run: uv run pytest tests -m "e2e" | |
| - name: Upload files | |
| id: upload | |
| uses: blueswen/glimpse-action@v1 | |
| with: | |
| directory: 'playwright-results' | |
| branch: 'glimpse' | |
| generations: '5' | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Preview image in summary | |
| run: | | |
| echo "# End to End Test Images" >> $GITHUB_STEP_SUMMARY | |
| for file_url in $(echo "${{ steps.upload.outputs.file_urls }}" | tr ',' '\n'); do | |
| filename=$(basename "$file_url") | |
| echo "## ${filename}" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| done |