Skip to content

Commit 5b1ca4b

Browse files
committed
chore: fix ubuntu automation testing failure issue in CI
1 parent 41ed48f commit 5b1ca4b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
if: matrix.os == 'ubuntu-latest'
5858
run: |
5959
sudo apt-get update
60-
sudo apt-get install -y chromium-browser chromium-chromedriver
60+
sudo apt-get install -y chromium-browser chromium-chromedriver xvfb
6161
6262
- name: Install browser for testing (macOS)
6363
if: matrix.os == 'macos-latest'
@@ -69,6 +69,12 @@ jobs:
6969
run: |
7070
choco install chromium chromedriver
7171
72+
- name: Start virtual display (Ubuntu)
73+
if: matrix.os == 'ubuntu-latest'
74+
run: |
75+
export DISPLAY=:99
76+
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
77+
7278
- name: Run browser tests
7379
run: |
7480
pytest tests/test_dash_callbacks.py tests/test_dash_integration.py

0 commit comments

Comments
 (0)