Skip to content

Commit 61143f4

Browse files
committed
Fix workflow (add X virtual framebuffer) for failing tests in the GitHub CI
1 parent 00e7f8d commit 61143f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ jobs:
3636
- name: Build package
3737
run: hatch build
3838

39+
- name: Run Xvfb
40+
run: |
41+
Xvfb :99 -screen 0 1024x768x24 &
42+
export DISPLAY=:99
43+
3944
- name: Test package
40-
run: hatch run make test
45+
run: |
46+
export DISPLAY=:99
47+
hatch run make test
4148
4249
- name: Store the distribution packages
4350
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)