-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathauto-copilot-org-playwright-loopv2.yaml
More file actions
57 lines (47 loc) · 1.67 KB
/
auto-copilot-org-playwright-loopv2.yaml
File metadata and controls
57 lines (47 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: "Org-wide: Copilot Playwright Test, Review, Auto-fix, PR, Merge"
on:
push:
branches:
- main
- master
jobs:
playwright-review-fix:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest playwright pytest-playwright
- name: Install Playwright browsers
run: |
python -m playwright install
- name: Run Playwright Tests
run: |
pytest tests/ || exit 1
continue-on-error: true
# Note: GitHub Copilot agent actions are not available as public actions
# This step would provide automated PR review
# For now, manual PR review is required
# Note: GitHub Copilot agent actions are not available as public actions
# This step would automatically fix failing Playwright tests
# For now, manual test fixing is required
- name: Create Pull Request for Automated Fixes
uses: peter-evans/create-pull-request@main
with:
branch: "copilot/playwright-fixes"
title: "Copilot: Auto-fix Playwright Tests"
body: "Automated Playwright test fixes by Copilot Agent."
commit-message: "Copilot agent Playwright bugfixes"
continue-on-error: true
- name: Automerge PR if checks pass
uses: pascalgn/automerge-action@main
with:
merge-method: squash
github-token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true