Skip to content

Commit

Permalink
try python -m before pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
psobolewskiPhD authored Feb 19, 2022
1 parent b577cbf commit d1aa3df
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
os: [
ubuntu-18.04,
ubuntu-20.04,
# windows-latest,
windows-latest,
macOS-10.15,
]

Expand All @@ -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: |
Expand All @@ -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

Expand All @@ -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
black --check --exclude vendor napari_aicsimageio

0 comments on commit d1aa3df

Please sign in to comment.