File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,42 @@ jobs:
2222 - name : Install Dependencies
2323 run : |
2424 python -m pip install --upgrade pip
25- pip install pytest patchright
25+ pip install pytest
26+
27+ - name : Install Playwright-Python Package
28+ run : |
29+ git clone https://github.com/microsoft/playwright-python --branch ${{ env.playwright_version }}
30+ cd playwright-python
31+ python -m pip install --upgrade pip
32+ pip install -r local-requirements.txt
33+ pip install -e .
34+ pip install black toml
35+
36+ - name : Patch Playwright-Python Package
37+ run : |
38+ python patch_python_package.py
39+ python -m black playwright-python
40+
41+ - name : Build Patchright-Python Package
42+ run : |
43+ cd playwright-python
44+ pip install -e .
45+ for wheel in $(python setup.py --list-wheels); do
46+ PLAYWRIGHT_TARGET_WHEEL=$wheel python -m build --wheel
47+ done
48+
49+ - name : Install Local Patchright Package
50+ run : |
51+ cd playwright-python
52+ pip install dist/patchright-*-manylinux1_x86_64.whl
53+ # dist/patchright-1.52.5-py3-none-manylinux1_x86_64.whl
2654
2755 - name : Install Playwright Browsers
2856 run : |
2957 python -m patchright install --with-deps chromium
3058
3159 - name : Clone Playwright-Python Tests
3260 run : |
33- git clone --depth 1 https://github.com/microsoft/playwright-python.git
3461 cp -r playwright-python/tests ./tests
3562
3663 - name : Modify Tests
Original file line number Diff line number Diff line change 77 'test_console.py' ,
88
99 # query_selector is deprecated
10+ 'test_query_selector.py' ,
1011 'test_element_handle.py' ,
1112 'test_element_handle_wait_for_element_state.py' ,
1213
You can’t perform that action at this time.
0 commit comments