diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index 78ac954..38bb028 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -19,10 +19,13 @@ jobs: python-version: "${{ matrix.python-version }}" - name: Dependencies run: | - pip install wheel + pip install wheel setuptools rstcheck - name: Test run: | python setup.py test + - name: Test readme + run: | + rstcheck README.rst - name: Build a binary wheel and a source tarball run: | python setup.py sdist bdist_wheel diff --git a/setup.py b/setup.py index 6d9c55f..a37fb1e 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,5 @@ install_requires=['tlds'], include_package_data=True, zip_safe=True, - tests_require=['rstcheck'], test_suite='tests', - ) +) diff --git a/tests/test_readme.py b/tests/test_readme.py deleted file mode 100644 index 682462e..0000000 --- a/tests/test_readme.py +++ /dev/null @@ -1,12 +0,0 @@ -import os.path -import unittest - -import rstcheck - - -class TestReadmeClass(unittest.TestCase): - def test_readme(self): - path = os.path.join(os.path.dirname(__file__), '..', 'README.rst') - with open(path) as f: - results = list(rstcheck.check(f.read())) - self.assertEqual(results, [])