Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try python -m before pytest #1

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
- 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}
- 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 @@ -53,7 +53,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 Down
18 changes: 9 additions & 9 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 @@ -27,12 +27,12 @@ jobs:
- 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}
- 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