Skip to content

Commit

Permalink
test pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkure committed Feb 17, 2021
1 parent 3d2fae3 commit a6cb3f4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ jobs:
run: |
black ./ --check
flake8
# test:
# needs: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: 3.8
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install .[dev]
# - name: Test
# run: pytest
test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Test
run: pytest
# - name: Coveralls
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 3 additions & 2 deletions napari_split_dataset/_reader.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Main module."""
from napari_plugin_engine import napari_hook_implementation
from pathlib import Path
import numpy as np

import flammkuchen as fl
import numpy as np
from napari_plugin_engine import napari_hook_implementation
from split_dataset import SplitDataset


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""The setup script."""

from setuptools import setup, find_packages
from setuptools import find_packages, setup

with open("README.rst") as readme_file:
readme = readme_file.read()
Expand Down
5 changes: 3 additions & 2 deletions tests/test_napari_split_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"""Tests for `napari_split_dataset` package."""

import pytest
from napari_split_dataset import _reader
from numpy import ndarray
from dask.array.core import Array
from numpy import ndarray

from napari_split_dataset import _reader


@pytest.mark.parametrize(
Expand Down

0 comments on commit a6cb3f4

Please sign in to comment.