diff options
author | Elias Müller <elias.mr1@gmail.com> | 2022-07-09 18:31:42 +0200 |
---|---|---|
committer | jaseg <136313+jaseg@users.noreply.github.com> | 2022-07-11 12:44:47 +0200 |
commit | e91fd16f35dd8048356f5aab9368123997b1618d (patch) | |
tree | 88348e84a4e81fa395ee8766ad7eb5ce5d537994 | |
parent | dffd89630bb7728327fe2a3f140d17e6b8fb9eb1 (diff) | |
download | python-mpv-e91fd16f35dd8048356f5aab9368123997b1618d.tar.gz python-mpv-e91fd16f35dd8048356f5aab9368123997b1618d.tar.bz2 python-mpv-e91fd16f35dd8048356f5aab9368123997b1618d.zip |
Start Xvfb before running tests
-rw-r--r-- | .github/workflows/tests.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a1b02ee..7cc905f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,6 +12,9 @@ defaults: jobs: + build: + env: + DISPLAY: :0 test-python: runs-on: ubuntu-22.04 strategy: @@ -36,6 +39,10 @@ jobs: run: | function execute() { echo -e "\033[0;34m$*\033[0m"; "$@"; } execute sudo apt install -y libmpv1 xvfb + - name: 'Start Xvfb' + run: | + echo -e "\033[0;34msudo /usr/bin/Xvfb $DISPLAY -screen 0 1920x1080x24 &\033[0m"; + sudo /usr/bin/Xvfb $DISPLAY -screen 0 1920x1080x24 & - name: 'Create Virtual Environment' run: | function execute() { echo -e "\033[0;34m$*\033[0m"; "$@"; } |