diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 162a742..be2de60 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -66,6 +66,8 @@ jobs: - name: Install dependencies run: | + sudo apt-get update + sudo apt-get install -y xvfb # As github linux platform uses headless requires lib xvfb to quit process pip install Pillow requests pyinstaller pyautogui - name: Build for Linux @@ -73,4 +75,5 @@ jobs: pyinstaller --onefile --noconsole --icon=assets/view_earth.ico --distpath=. Heroes3MapLiker.py - name: Run Linux Tests - run: python tests.py + run: | + xvfb-run --auto-servernum python tests.py # Use xvfb to run the tests