代码拉取完成,页面将自动刷新
image:
- macos
- Ubuntu2004
- Ubuntu2204
- Visual Studio 2022
for:
-
matrix:
only:
- image: Visual Studio 2022
# cache:
# - C:\ProgramData\chocolatey\bin -> appveyor.yml
# - C:\ProgramData\chocolatey\lib -> appveyor.yml
environment:
PYTHON: "C:\\Python37-x64"
PYTHON_VERSION: "3.7.x"
PYTHON_ARCH: "64"
APPVEYOR_BAKE_IMAGE: pywebview-visualstudio2022
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "choco install webview2-runtime --ignore-checksums"
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "%CMD_IN_ENV% pip install -r requirements.txt"
- "%CMD_IN_ENV% pip install \"pytest>=4.3.0\" pythonnet bottle .[cef]"
test_script:
- cd tests
- powershell -File ./run.ps1
-
matrix:
only:
- image: Ubuntu2004
environment:
PYWEBVIEW_GUI: qt
DISPLAY: :99
QT_QPA_PLATFORM: offscreen
install:
- sudo apt-get update -q
- sudo apt-get install --no-install-recommends -y xvfb python3-pyqt5 python3-pyqt5.qtwebkit libqt5webkit5-dev python3-pep8 pyflakes python3-pytest
- python3 -m pip install proxy_tools pytest bottle typing_extensions QtPy PyQt5 pyqtwebengine
before_test:
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset && sleep 3;
test_script:
- cd tests
- ./run.sh
after_test:
- killall Xvfb
-
matrix:
only:
- image: Ubuntu2204
environment:
PYWEBVIEW_GUI: gtk
DISPLAY: :99
install:
- sudo apt-get update -q
- sudo apt-get install --no-install-recommends -y xvfb gir1.2-gtk-3.0 gir1.2-webkit2-4.0 python3-gi python3-gi-cairo python3-pep8 pyflakes3 python3-pytest
- python3 -m pip install proxy_tools pytest bottle typing_extensions pygobject
before_test:
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset && sleep 3;
test_script:
- cd tests
- ./run.sh
after_test:
- killall Xvfb
-
matrix:
only:
- image: macos
artifacts:
- path: /tmp/screenshots
name: Screenshots
install:
- python3 -m pip install --user pyobjc pytest proxy_tools bottle typing_extensions
test_script:
- cd tests
- PYWEBVIEW_LOG=debug python3 -m pytest test_simple_browser.py
- ./run.sh
- python3 -m pip install --user pyobjc pytest proxy_tools bottle typing_extensions
build: off
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。