Try installing rapydscript in CI

WebEngine is flaky on macOS CI
This commit is contained in:
Kovid Goyal 2025-12-11 19:49:46 +05:30
parent 561df1798e
commit 1da24f0407
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -236,17 +236,24 @@ def check_dependencies() -> None:
def main():
action = sys.argv[1]
if iswindows:
import runpy
m = runpy.run_path('setup/win-ci.py')
return m['main']()
action = sys.argv[1]
if action == 'install':
# WebEngine is flaky in macOS CI so install rapydscript so bootstrap wont fail
run('npm', 'install', 'rapydscript-ng')
root = subprocess.check_output(['npm', 'root']).decode().strip()
with open(os.environ['GITHUB_PATH'], 'a') as f:
print(os.path.abspath(os.path.join(root, '.bin')), file=f)
install_bundle()
if not ismacos:
install_linux_deps()
elif action == 'bootstrap':
run('rapydscript', '--version')
install_env()
run_python('setup.py bootstrap --ephemeral')