Repository: inveniosoftware/citeproc-py-styles (language: python)

Issue:
global: migration to github-actions from travis

MANIFEST.in misses some files
This causes the CI to fail

```
Run ./run-tests.sh
lists of files in version control and sdist do not match!
missing from sdist:
  citeproc_styles/styles
```


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml
new file mode 100644
index 0000000..a158b22
--- /dev/null
+++ b/.github/workflows/pypi-publish.yml
@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of Invenio.
+# Copyright (C) 2020 CERN.
+#
+# Invenio is free software; you can redistribute it and/or modify it
+# under the terms of the MIT License; see LICENSE file for more details.
+
+name: Publish
+
+on:
+  push:
+    tags:
+      - v*
+
+jobs:
+  Publish:
+    runs-on: ubuntu-20.04
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+
+      - name: Set up Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: 3.7
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install setuptools wheel
+
+      - name: Build package
+        run: |
+          python setup.py sdist bdist_wheel
+
+      - name: Publish on PyPI
+        uses: pypa/gh-action-pypi-publish@v1.3.1
+        with:
+          user: __token__
+          password: ${{ secrets.pypi_token }}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index bc52847..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# This file is part of citeproc-py-styles.
-# Copyright (C) 2016-2018 CERN.
-#
-# citeproc-py-styles is free software; you can redistribute it and/or modify it
-# under the terms of the MIT License; see LICENSE file for more details.
-
-notifications:
-  email: false
-
-sudo: false
-
-language: python
-
-cache:
-  - pip
-
-env:
-  - REQUIREMENTS=lowest
-  - REQUIREMENTS=release
-  - REQUIREMENTS=devel
-
-python:
-   - "3.6"
-   - "3.7"
-   - "3.8"
-
-matrix:
-  fast_finish: true
-  allow_failures:
-    - env: REQUIREMENTS=devel
-    - python: 3.8
-
-before_install:
-  - "travis_retry pip install --upgrade pip setuptools py"
-  - "travis_retry pip install twine wheel coveralls requirements-builder"
-  - "requirements-builder --level=min setup.py > .travis-lowest-requirements.txt"
-  - "requirements-builder --level=pypi setup.py > .travis-release-requirements.txt"
-  - "requirements-builder --level=dev --req requirements-devel.txt setup.py > .travis-devel-requirements.txt"
-
-install:
-  - "travis_retry pip install -r .travis-${REQUIREMENTS}-requirements.txt"
-  - "travis_retry pip install -e .[all]"
-
-script:
-  - "./run-tests.sh"
-
-after_success:
-- coveralls
-
-deploy:
-  provider: pypi
-  user: inveniosoftware
-  password:
-    secure: "WHvRhQUacZVfzdLKS6IsFn4+5fZB8+80nyrFLZgg5OApEf0/i+RC6UsKZCbHKOjUsUgiZgCChp6ipjW4HIWXrHpFh+sa6nbrVAkiCWyT8P9abEZs7rTtJ0Md5pjliF1D5Qc/vHCmVHkcxFw3GbRsDRkToW4EeXZX108y6vUw+ROQpSg3u9JWIzyO8hSOXaowSkFjhY+8TciEGMLN0rcUo2HIVZkW5TlsgDPUyYmE2MlTGsx86lDkeL5e2KqkZ3mwQZvjCDKkYEGmVXZihCkwdyePUrYfc1+amWAdb2yPVFPiNkrJKtJiFnPaBLHLdIwI4rYKcPtmVPWML7NZijRRewGoL+edmk0Mv2KGfDRsBKkXeFlOiu7Kpb6sTUXJbxTOL3/0DoPNxFoiSvJxIoX925ZqnLKqwNEA6FRl0rPrWJQhBzVQtZbKkLX1lUxhRBf+aW5+F6KCBk46vr8Ky+WeDNvDjPqni7DrOdKRUYRrKGyLcwkjskGY3ljH/Gsw0/trMUl5IyqENvPHuAbCqr1vJ6+oIfAcFNoJLezSq1jSkDlpspDCOOVlDp/H3NcjqTd04WsG7V6vWop66TSdZcQRSL0vQWNufYyyWYS0DPg2LN/FGFGnRBcZSPIwdLL7nMlOTo8nyPw/FBcxmyUxUMt54v1McKVb/h5OITJosvRanYk="
-  distributions: "sdist bdist_wheel"
-  on:
-    tags: true
-  skip_existing: true
diff --git a/MANIFEST.in b/MANIFEST.in
index de0b0db..6e67df1 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -15,3 +15,4 @@ include LICENSE
 prune citeproc_styles/styles
 recursive-include tests *.py
 recursive-include citeproc_styles/styles *.csl
+recursive-include .github/workflows *.yml
diff --git a/README.rst b/README.rst
index 361a944..958ab7d 100644
--- a/README.rst
+++ b/README.rst
@@ -9,8 +9,8 @@
  citeproc-py-styles
 ====================
 
-.. image:: https://img.shields.io/travis/inveniosoftware/citeproc-py-styles.svg
-        :target: https://travis-ci.org/inveniosoftware/citeproc-py-styles
+.. image:: https://github.com/inveniosoftware/citeproc-py-styles/workflows/CI/badge.svg
+        :target: https://github.com/inveniosoftware/citeproc-py-styles/actions?query=workflow%3ACI
 
 .. image:: https://img.shields.io/coveralls/inveniosoftware/citeproc-py-styles.svg
         :target: https://coveralls.io/r/inveniosoftware/citeproc-py-styles
diff --git a/setup.py b/setup.py
index baa83a5..ea32786 100644
--- a/setup.py
+++ b/setup.py
@@ -15,13 +15,7 @@
 readme = open('README.rst').read()
 
 tests_require = [
-    'check-manifest>=0.25',
-    'coverage>=4.0',
-    'isort>=4.2.2',
-    'pydocstyle>=1.0.0',
-    'pytest-cov>=1.8.0',
-    'pytest-pep8>=1.0.6',
-    'pytest>=2.8.0',
+    'pytest-invenio>=1.4.0'
 ]
 
 extras_require = {


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..fbddaf6
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,62 @@
+# -*- coding: utf-8 -*-
+#
+# This file is part of Invenio.
+# Copyright (C) 2020 CERN.
+#
+# Invenio is free software; you can redistribute it and/or modify it
+# under the terms of the MIT License; see LICENSE file for more details.
+
+name: CI
+
+on:
+  push:
+    branches: master
+  pull_request:
+    branches: master
+  schedule:
+    # * is a special character in YAML so you have to quote this string
+    - cron:  '0 3 * * 6'
+  workflow_dispatch:
+    inputs:
+      reason:
+        description: 'Reason'
+        required: false
+        default: 'Manual trigger'
+
+jobs:
+  Tests:
+    runs-on: ubuntu-20.04
+    strategy:
+      matrix:
+          python-version: [3.6, 3.7, 3.8]
+          requirements-level: [min, pypi]
+
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v2
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Generate dependencies
+        run: |
+          python -m pip install --upgrade pip setuptools py wheel requirements-builder
+          requirements-builder -e all --level=${{ matrix.requirements-level }} setup.py > .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
+
+      - name: Cache pip
+        uses: actions/cache@v2
+        with:
+          path: ~/.cache/pip
+          key: ${{ runner.os }}-pip-${{ hashFiles('.${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt') }}
+
+      - name: Install dependencies
+        run: |
+          pip install -r .${{ matrix.requirements-level }}-${{ matrix.python-version }}-requirements.txt
+          pip install .[all]
+          pip freeze
+
+      - name: Run tests
+        run: |
+          ./run-tests.sh
diff --git a/run-tests.sh b/run-tests.sh
index 9e18a1d..431dfff 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -1,12 +1,19 @@
+#!/usr/bin/env bash
 # -*- coding: utf-8 -*-
 #
-# This file is part of citeproc-py-styles.
-# Copyright (C) 2016-2018 CERN.
+# This file is part of Invenio.
+# Copyright (C) 2015-2020 CERN.
 #
-# citeproc-py-styles is free software; you can redistribute it and/or modify it
+# Invenio is free software; you can redistribute it and/or modify it
 # under the terms of the MIT License; see LICENSE file for more details.
 
-pydocstyle citeproc_styles && \
-isort -rc -c -df **/*.py && \
-check-manifest --ignore ".travis-*" && \
-python setup.py test
+# Quit on errors
+set -o errexit
+
+# Quit on unbound symbols
+set -o nounset
+
+python -m check_manifest --ignore ".*-requirements.txt"
+python -m sphinx.cmd.build -qnNW docs docs/_build/html
+python -m pytest
+python -m sphinx.cmd.build -qnNW -b doctest docs docs/_build/doctest