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 16ff442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 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 @@ -130,10 +130,7 @@ jobs:
uses: GabrielBB/xvfb-action@v1
with:
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 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 == "darwin" else "interactive"


def running_headless() -> bool:
Expand Down

0 comments on commit 16ff442

Please sign in to comment.