mirror of
https://github.com/python/cpython.git
synced 2025-11-02 14:41:33 +00:00
Adds a mechanism to test browser-based initialisation of the Python interpreter, via a Playwright headless browser instance.
10 lines
330 B
Bash
Executable file
10 lines
330 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
rm -f test_log.txt
|
|
echo "Installing node packages" | tee test_log.txt
|
|
npm ci >> test_log.txt 2>&1
|
|
echo "Installing playwright browsers" | tee test_log.txt
|
|
npx playwright install 2>> test_log.txt
|
|
echo "Running tests" | tee test_log.txt
|
|
CI=1 npx playwright test | tee test_log.txt
|