Skip to content

Commit

Permalink
WIP: test platform
Browse files Browse the repository at this point in the history
  • Loading branch information
gselzer committed Aug 10, 2022
1 parent 5c6c749 commit 3014591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
uses: GabrielBB/xvfb-action@v1
with:
run: |
python -m pytest -p no:faulthandler --color=yes
python -m pytest -p no:faulthandler --color=yes -s
ensure-clean-code:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -132,8 +132,8 @@ jobs:
run: |
python --version
python -m pip list
conda run python -m pip list
conda run python -m pytest -p no:faulthandler --cov-report=xml --cov=.
conda run -n napari-imagej-dev python -m pip list
conda run -n napari-imagej-dev python -m pytest -p no:faulthandler --cov-report=xml --cov=.
# We could do this in its own action, but we'd have to setup the environment again.
- name: Upload Coverage to Codecov
Expand Down
2 changes: 1 addition & 1 deletion src/napari_imagej/setup_imagej.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_mode() -> str:
"""
Returns the mode ImageJ will be run in
"""
return "headless" if sys.platform == "Darwin" else "interactive"
return "headless" if sys.platform.lower() == "darwin" else "interactive"


def running_headless() -> bool:
Expand Down

0 comments on commit 3014591

Please sign in to comment.