mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 18:02:49 +08:00
Use isolated Python environment for Safari check
This commit is contained in:
1 parent
c5635102f0
commit
a8cf46f2da
1 file changed
+6
-6
@@ -29,10 +29,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -58,19 +58,19 @@ jobs:
|
|||||||
- name: Prepare Safari automation
|
- name: Prepare Safari automation
|
||||||
run: |
|
run: |
|
||||||
sudo safaridriver --enable
|
sudo safaridriver --enable
|
||||||
python3 -m pip install selenium
|
python3 -m venv .venv-safari
|
||||||
|
.venv-safari/bin/python -m pip install selenium
|
||||||
|
|
||||||
- name: Test landing page in Safari
|
- name: Test landing page in Safari
|
||||||
env:
|
env:
|
||||||
BASE_URL: http://127.0.0.1:4173/landing/
|
BASE_URL: http://127.0.0.1:4173/landing/
|
||||||
run: python3 tests/safari_smoke.py
|
run: .venv-safari/bin/python tests/safari_smoke.py
|
||||||
|
|
||||||
- name: Upload Safari screenshots
|
- name: Upload Safari screenshots
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: safari-screenshots
|
name: safari-screenshots
|
||||||
path: test-results/safari-*.png
|
path: test-results/safari-*.png
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
Reference in new issue
Block a user