diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b4c874f9..0f93a67e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,8 +18,6 @@ jobs: tests: name: tests runs-on: ubuntu-latest - strategy: - fail-fast: false steps: - uses: actions/checkout@v2 name: Checkout @@ -31,9 +29,9 @@ jobs: python-version: 3.8 - run: | python -m pip install --upgrade pip - pip install ".[all,test]" + pip install -e .[all,tests] name: Install dependencies - run: pip freeze name: List dependencies - - run: pytest tests + - run: python -m pytest tests name: Run tests diff --git a/setup.py b/setup.py index daf39b1b..f8e94319 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,14 @@ include_package_data=True, python_requires=">= 2.7, != 3.0.*, != 3.1.*, != 3.2.*, != 3.3.*", install_requires=["Flask>=0.10", "SQLAlchemy<2.0"], + extras_require={ + "tests": [ + "pytest", + "coverage", + "blinker", + "mock" + ] + }, classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment",