diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..20c2e80 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Continuous Integration + +on: + push: + branches: + - 'master' + tags: + - '*' + pull_request: + types: + - 'opened' + - 'synchronize' + workflow_dispatch: + schedule: + # Schedule every Saturday at 00:30 UTC + - cron: '30 0 * * 6' + +jobs: + python-ci: + uses: epsy/python-workflows/.github/workflows/python-ci.yaml@ykaiser/support-od + with: + package-folder: od + python-versions: | + [ + '2.7', + 'pypy2', + '3.5', + 'pypy3', + '3.6', + '3.7' + ] diff --git a/setup.py b/setup.py index d87e81b..9c3fc0f 100755 --- a/setup.py +++ b/setup.py @@ -11,6 +11,9 @@ author='Yann Kaiser', author_email='kaiser.yann@gmail.com', py_modules=('od', 'test_od'), + extras_require={ + 'test': ['unittest2', 'repeated_test'], + }, tests_require=['unittest2', 'repeated_test'], test_suite='unittest2.collector', keywords=[ diff --git a/tox.ini b/tox.ini index 4860e6f..c85bf7c 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,17 @@ skipsdist=true 3.5 = py35, coveralls, pyflakes pypy3 = test-pypy3 +[gh-actions] +python = + 3.5: py35 + pypy3: pypy3 + 3.6: py36 + 3.7: py37 + 3.8: py38 + 3.9: py39 + 3.10: py310 + 3.10-dev: py310 + [testenv] deps= unittest2