Skip to content

Commit

Permalink
Not use GabrielBB/xvfb-action on non linux systems (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki authored Jan 31, 2022
1 parent d7dfdbb commit 4fe701b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/test_prereleases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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() }}
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 4fe701b

Please sign in to comment.