1- name : " Org-wide : Copilot Playwright Test, Review, Auto-fix, PR, Merge "
1+ name : " DEPRECATED : Copilot Playwright Loop (legacy) "
22
33on :
4- push :
5- branches :
6- - main
7- - master
4+ workflow_dispatch :
85
96jobs :
10- playwright-review-fix :
7+ deprecated :
118 runs-on : ubuntu-latest
129 steps :
13- # Checkout repository code
14- - name : Checkout code
15- uses : actions/checkout@main
16-
17- # Set up Python (change/add for other stacks!)
18- - name : Setup Python
19- uses : actions/setup-python@main
20- with :
21- python-version : " 3.11"
22-
23- # Install dependencies (Python example)
24- - name : Install dependencies
25- run : |
26- pip install -r requirements.txt
27- pip install pytest playwright pytest-playwright
28-
29- # Install Playwright browsers
30- - name : Install Playwright browsers
31- run : |
32- python -m playwright install
33-
34- # Run Playwright tests
35- - name : Run Playwright Tests
10+ - name : Notice
3611 run : |
37- pytest tests/ || exit 1
38- continue-on-error : true
39-
40- # Copilot PR Agent auto-review (if available for org)
41- - name : Copilot PR Agent Review
42- uses : github/copilot-agent/pr@main
43- with :
44- github-token : ${{ secrets.GITHUB_TOKEN }}
45- continue-on-error : true
46-
47- # Copilot Agent auto-fix (can loop up to N attempts if tests fail)
48- - name : Copilot Auto-fix Failing Playwright Tests
49- uses : github/copilot-agent/fix@main
50- with :
51- github-token : ${{ secrets.GITHUB_TOKEN }}
52- max_attempts : 3 # Try up to 3 auto-fix loops!
53- continue-on-error : true
54-
55- # Create PR with fixes (if any)
56- - name : Create Pull Request for Automated Fixes
57- uses : peter-evans/create-pull-request@main
58- with :
59- branch : " copilot/playwright-fixes"
60- title : " Copilot: Auto-fix Playwright Tests"
61- body : " Automated Playwright test fixes by Copilot Agent."
62- commit-message : " Copilot agent Playwright bugfixes"
63- continue-on-error : true
64-
65- # Automerge PR if passing
66- - name : Automerge PR if checks pass
67- uses : pascalgn/automerge-action@main
68- with :
69- merge-method : squash
70- github-token : ${{ secrets.GITHUB_TOKEN }}
71- continue-on-error : true
12+ echo "This legacy workflow referenced non-existent Copilot agent actions."
13+ echo "Use auto-copilot-org-playwright-loopv2.yml instead."
0 commit comments