From 4fe701b6d3636ee7efd510d9704c1786159e2ab9 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Mon, 31 Jan 2022 20:22:54 +0100 Subject: [PATCH] Not use GabrielBB/xvfb-action on non linux systems (#519) --- .github/workflows/test_prereleases.yml | 13 ++++++++++++- .github/workflows/tests.yml | 14 +++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_prereleases.yml b/.github/workflows/test_prereleases.yml index 5abe9532b..427744d50 100644 --- a/.github/workflows/test_prereleases.yml +++ b/.github/workflows/test_prereleases.yml @@ -67,8 +67,9 @@ jobs: pip install --upgrade pip pip install setuptools tox tox-gh-actions - - name: Test with tox + - name: Test with tox linux # run tests using pip install --pre + if: runner.os == 'Linux' uses: GabrielBB/xvfb-action@v1 timeout-minutes: 60 with: @@ -78,6 +79,16 @@ jobs: PYVISTA_OFF_SCREEN: True # required for opengl on windows NAPARI: None + - name: Test with tox linux + # run tests using pip install --pre + if: runner.os != 'Linux' + timeout-minutes: 60 + run: tox -v --pre + env: + PLATFORM: ${{ matrix.platform }} + PYVISTA_OFF_SCREEN: True # required for opengl on windows + NAPARI: None + # If something goes wrong, we can open an issue in the repo - name: Report Failures if: ${{ failure() }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 66925a852..dcfd892cb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -72,15 +72,27 @@ jobs: run: | python -m pip install -r requirements/requirements_dev.txt tox-gh-actions - - name: Test with tox + - name: Test with tox linux # run tests using pip install --pre + if: runner.os == 'Linux' uses: GabrielBB/xvfb-action@v1 timeout-minutes: 60 with: run: tox env: + PLATFORM: ${{ matrix.platform }} + PYVISTA_OFF_SCREEN: True # required for opengl on windows NAPARI: None + - name: Test with tox linux + # run tests using pip install --pre + if: runner.os != 'Linux' + timeout-minutes: 60 + run: tox + env: + PLATFORM: ${{ matrix.platform }} + PYVISTA_OFF_SCREEN: True # required for opengl on windows + NAPARI: None test_feature: name: PartSeg on ${{ matrix.os }} py ${{ matrix.python_version }}