From dcfbea20aeac6480ba268324a9cf9bc3017231c0 Mon Sep 17 00:00:00 2001 From: Qin Yu Date: Tue, 17 Dec 2024 23:50:25 +0100 Subject: [PATCH] fix ci by skipping --- .github/workflows/build-and-test-package.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-test-package.yml b/.github/workflows/build-and-test-package.yml index 1b7fe381..43a0bd59 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,13 +59,11 @@ jobs: # Run tests using pytest - name: Run Tests with Pytest - uses: aganders3/headless-gui@v2 - with: - shell: bash -l {0} - run: | - conda activate plant-seg - pytest -sv --cov --cov-report=xml - conda deactivate + shell: bash -l {0} + run: | + conda activate plant-seg + pytest -s --cov --cov-report=xml + conda deactivate # Upload Codecov report - name: Upload coverage reports to Codecov