diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index af3bb23..9efdd0d 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -42,8 +42,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest - python setup.py install + pip install pytest -e .[test] - name: Run farmOS.py tests. run: pytest tests env: diff --git a/setup.py b/setup.py index d1152c2..bf48467 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,9 @@ install_requires = ["requests-oauthlib~=1.3.1", "pydantic~=1.7.3"] -tests_require = ["pytest~=7.0", "black~=23.0", "setuptools~=68.0"] +extras_require = { + "test": ["pytest~=7.0", "black~=23.0", "setuptools~=68.0"], +} with open("README.md") as fh: readme = fh.read() @@ -29,6 +31,6 @@ python_requires=">=3.8", setup_requires=setup_requires, install_requires=install_requires, - tests_require=tests_require, + extras_require=extras_require, test_suite="pytest", )