-
Notifications
You must be signed in to change notification settings - Fork 146
46 lines (44 loc) · 1.14 KB
/
playwright_ui_test.yml
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
name: Playwright Tests
on:
workflow_dispatch:
workflow_run:
workflows:
- "Execute remote shell script"
types:
- completed
schedule:
- cron: '10 0,4,12 * * *'
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
base_url: ['', 'https://fast.huacai.one']
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
cd playwright_demo
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Ensure browsers are installed
run: python -m playwright install --with-deps
- name: Run your tests
run: |
cd playwright_demo
pytest --base-url=${{ matrix.base_url }} --reruns 3 --reruns-delay 2
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-traces_and_results
path: |
playwright_demo/allure-results/
playwright_demo/*trace.zip