From 867a331e81bb540fff9a2c6ecc93f06463ca3d77 Mon Sep 17 00:00:00 2001 From: Qin Yu Date: Tue, 17 Dec 2024 22:42:42 +0100 Subject: [PATCH] ci: debug with microsam setting --- .github/workflows/build-and-test-package.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-and-test-package.yml b/.github/workflows/build-and-test-package.yml index 434cfbd3..1b7fe381 100644 --- a/.github/workflows/build-and-test-package.yml +++ b/.github/workflows/build-and-test-package.yml @@ -18,10 +18,10 @@ jobs: uses: tlambert03/setup-qt-libs@v1 # Start X virtual framebuffer for GUI testing - - name: Start Xvfb - run: | - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid \ - --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX + # - name: Start Xvfb + # run: | + # /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid \ + # --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX # Set the PlantSeg version based on the current date and time - name: Set PlantSeg Version @@ -59,11 +59,13 @@ jobs: # Run tests using pytest - name: Run Tests with Pytest - shell: bash -l {0} - run: | - conda activate plant-seg - pytest -sv --cov --cov-report=xml - conda deactivate + uses: aganders3/headless-gui@v2 + with: + shell: bash -l {0} + run: | + conda activate plant-seg + pytest -sv --cov --cov-report=xml + conda deactivate # Upload Codecov report - name: Upload coverage reports to Codecov