diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..88a5e6e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions + +name: Test + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.5, 3.6, 3.7, 3.8] + django-version: [1.11, 2.2, 3.0] + exclude: + - python-version: 3.5 + django-version: 3.0 + - python-version: 3.8 + django-version: 1.11 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -q Django==${{ matrix.django-version }} + pip install coverage + pip install -e git://github.com/django-nose/django-nose.git#egg=django-nose + pip install -q -e . + pip install coveralls + - name: Run tests + run: | + python runtests.py diff --git a/README.rst b/README.rst index 8311a40..8eb8965 100644 --- a/README.rst +++ b/README.rst @@ -8,7 +8,7 @@ Django-seed allows you to write code to generate models, and seed your database --------------- -|python| |pypi| |travis| |coveralls| |license| +|python| |pypi| |actions| |coveralls| |license| |downloads| --------------- @@ -145,9 +145,9 @@ MIT. See `LICENSE`_ for more details. :target: https://pypi.python.org/pypi/django-seed :alt: pypi -.. |travis| image:: https://img.shields.io/travis/Brobin/django-seed.svg?style=flat-square - :target: http://travis-ci.org/Brobin/django-seed - :alt: Travis Build +.. |actions| image:: https://github.com/Brobin/django-seed/workflows/Test/badge.svg + :target: https://github.com/Brobin/django-seed + :alt: Actions Build .. |coveralls| image:: https://img.shields.io/coveralls/Brobin/django-seed.svg?style=flat-square :target: https://coveralls.io/r/Brobin/django-seed @@ -163,3 +163,7 @@ MIT. See `LICENSE`_ for more details. .. |seed-logo| image:: assets/django_seed.png :alt: Django Seed + +.. |downloads| image:: https://pepy.tech/badge/django-seed + :target: https://pepy.tech/project/django-seed + :alt: downloads \ No newline at end of file diff --git a/setup.py b/setup.py index 128e64e..3f175e8 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,8 @@ def find_version(*file_paths): version=find_version('django_seed', '__init__.py'), author='Tobin Brown', author_email='tobinjbrown@gmail.com', - packages=['django_seed', 'django_seed.management', 'django_seed.management.commands'], + packages=['django_seed', 'django_seed.management', + 'django_seed.management.commands'], include_package_data=True, url='http://github.com/brobin/django-seed', license='MIT', @@ -46,7 +47,6 @@ def find_version(*file_paths): 'Natural Language :: English', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', @@ -58,7 +58,8 @@ def find_version(*file_paths): keywords='faker fixtures data test django seed', long_description=open('README.rst', 'rb').read().decode('utf-8'), install_requires=['django>=1.11', 'Faker>=0.7.7'], - tests_require=['django>=1.11', 'fake-factory>=0.5.0', 'coverage', 'django-nose'], + tests_require=['django>=1.11', 'fake-factory>=0.5.0', + 'coverage', 'django-nose'], test_suite="runtests.runtests", zip_safe=False, )