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

tests: add test for stardist #501

Merged
merged 2 commits into from
Nov 13, 2022
Merged
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
28 changes: 28 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,34 @@ jobs:
working-directory: magic-class
run: pytest -v --color=yes

test_stardist:
name: stardist tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: stardist/stardist-napari
path: stardist-napari
- uses: tlambert03/setup-qt-libs@v1
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing]
python -m pip install ./stardist-napari[test]

- name: Run stardist tests
uses: GabrielBB/xvfb-action@v1
with:
working-directory: stardist-napari
run: python -m pytest -v --color=yes -W ignore stardist_napari
env:
STARDIST_NAPARI_NOTHREADS: true
STARDIST_NAPARI_NOPERSIST: true

deploy:
needs: test
runs-on: ubuntu-latest
Expand Down