Skip to content

Commit 0c52170

Browse files
committed
Add end to end test
1 parent 7139096 commit 0c52170

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/end2end.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: End to End Test
2+
on: [push, pull_request]
3+
4+
jobs:
5+
run:
6+
name: Lint, Type Check, Security Scan & Build Test
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
11+
- name: Install uv
12+
uses: astral-sh/setup-uv@v5
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version-file: ".python-version"
18+
19+
- name: Install the project
20+
run: uv sync --all-extras --dev --frozen
21+
22+
- name: Run tests
23+
run: uv run pytest tests -m "e2e"
24+
25+
- name: Upload files
26+
id: upload
27+
uses: blueswen/glimpse-action@v1
28+
with:
29+
directory: 'playwright-results'
30+
branch: 'glimpse'
31+
generations: '5'
32+
33+
- name: Preview image in summary
34+
run: |
35+
echo "## Screenshot URLs" >> $GITHUB_STEP_SUMMARY
36+
for file_url in $(echo "${{ steps.upload.outputs.file_urls }}" | tr ',' '\n'); do
37+
filename=$(basename "$file_url")
38+
echo "## filename\n" >> $GITHUB_STEP_SUMMARY
39+
echo "![${filename}](${file_url})\n" >> $GITHUB_STEP_SUMMARY
40+
done

0 commit comments

Comments
 (0)