Skip to content

Commit

Permalink
Added Github Actions workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira committed Jul 22, 2020
1 parent 1818671 commit 99995b1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 7 deletions.
39 changes: 39 additions & 0 deletions .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
12 changes: 8 additions & 4 deletions README.rst
Expand Up @@ -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|

---------------

Expand Down Expand Up @@ -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
Expand All @@ -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
7 changes: 4 additions & 3 deletions setup.py
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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,
)

0 comments on commit 99995b1

Please sign in to comment.