From d1aa3dfb2652889df80a65084e98558ebe0ec3fa Mon Sep 17 00:00:00 2001 From: Peter Sobolewski <76622105+psobolewskiPhD@users.noreply.github.com> Date: Sat, 19 Feb 2022 22:17:56 +0100 Subject: [PATCH] try `python -m` before pytest https://github.com/GabrielBB/xvfb-action/issues/25#issuecomment-1029388301 --- .github/workflows/test-and-lint.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-and-lint.yml b/.github/workflows/test-and-lint.yml index c1e3bfc..f974c91 100644 --- a/.github/workflows/test-and-lint.yml +++ b/.github/workflows/test-and-lint.yml @@ -12,7 +12,7 @@ jobs: os: [ ubuntu-18.04, ubuntu-20.04, - # windows-latest, + windows-latest, macOS-10.15, ] @@ -26,13 +26,13 @@ jobs: # Install qt support libs - uses: tlambert03/setup-qt-libs@v1 - # strategy borrowed from vispy for installing opengl libs on windows - # - name: Install Windows OpenGL - # if: runner.os == 'Windows' - # run: | - # git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git - # powershell gl-ci-helpers/appveyor/install_opengl.ps1 - # if (Test-Path -Path "C:\Windows\system32\opengl32.dll" -PathType Leaf) {Exit 0} else {Exit 1} + strategy borrowed from vispy for installing opengl libs on windows + - name: Install Windows OpenGL + if: runner.os == 'Windows' + run: | + git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git + powershell gl-ci-helpers/appveyor/install_opengl.ps1 + if (Test-Path -Path "C:\Windows\system32\opengl32.dll" -PathType Leaf) {Exit 0} else {Exit 1} - name: Install Dependencies run: | @@ -46,7 +46,7 @@ jobs: - name: Test with pytest uses: GabrielBB/xvfb-action@v1 with: - run: pytest --cov-report xml --cov=napari_aicsimageio napari_aicsimageio/tests/ + run: python -m pytest --cov-report xml --cov=napari_aicsimageio napari_aicsimageio/tests/ - name: Upload codecov uses: codecov/codecov-action@v1 @@ -67,4 +67,4 @@ jobs: flake8 napari_aicsimageio --count --verbose --show-source --statistics isort napari_aicsimageio --check-only mypy napari_aicsimageio - black --check --exclude vendor napari_aicsimageio \ No newline at end of file + black --check --exclude vendor napari_aicsimageio