diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..68fafcf --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.6" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -r requirements.txt -r test-requirements.txt -r docs-requirements.txt + - name: Lint + run: flake8 sphinxcontrib/ + - name: Test + run: nosetests --verbose --with-cov --cov-report xml --cover-package=sphinxcontrib.chapeldomain + - name: Make docs + run: | + ( export PYTHONPATH=`pwd` && cd docs/ && make html ) + ( export PYTHONPATH=`pwd` && cd doc-test/ && make html ) + - name: Codecode + uses: codecov/codecov-action@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 416d20b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: python -python: - - 3.6 -install: - - python3 -m pip install -r requirements.txt -r test-requirements.txt -r docs-requirements.txt -script: - - flake8 sphinxcontrib/ - - nosetests --verbose --with-cov --cov-report xml --cover-package=sphinxcontrib.chapeldomain - - ( export PYTHONPATH=`pwd` && cd docs/ && make html ) - - ( export PYTHONPATH=`pwd` && cd doc-test/ && make html ) -after_success: - - coveralls diff --git a/README.rst b/README.rst index a94f8e7..c600d00 100644 --- a/README.rst +++ b/README.rst @@ -6,11 +6,11 @@ Chapel_ domain for Sphinx_. .. _Chapel: http://chapel-lang.org/ .. _Sphinx: http://sphinx-doc.org/ -.. image:: https://travis-ci.org/chapel-lang/sphinxcontrib-chapeldomain.svg?branch=master - :target: https://travis-ci.org/chapel-lang/sphinxcontrib-chapeldomain +.. image:: https://github.com/chapel-lang/sphinxcontrib-chapeldomain/actions/workflows/CI.yml/badge.svg + :target: https://github.com/chapel-lang/sphinxcontrib-chapeldomain/actions/workflows/CI.yml -.. image:: https://coveralls.io/repos/chapel-lang/sphinxcontrib-chapeldomain/badge.svg?branch=master - :target: https://coveralls.io/r/chapel-lang/sphinxcontrib-chapeldomain?branch=master +.. image:: https://codecov.io/gh/chapel-lang/sphinxcontrib-chapeldomain/branch/master/graph/badge.svg + :target: https://codecov.io/gh/chapel-lang/sphinxcontrib-chapeldomain `Package documentation`_ is available on readthedocs.org. diff --git a/docs/developers.rst b/docs/developers.rst index 71ca07d..da27f18 100644 --- a/docs/developers.rst +++ b/docs/developers.rst @@ -27,7 +27,7 @@ Overview Testing ------- -Travis_ runs the tests automically and records code coverage in Coveralls_. On +`Github Actions`_ runs the tests automically and records code coverage in Codecov_. On a local workstation, tox_ can be used to run the tests in a similar fashion. .. code-block:: bash @@ -38,8 +38,8 @@ a local workstation, tox_ can be used to run the tests in a similar fashion. tox -e docs # verify the docs build tox -e doc-test # verify the acceptance tests build -.. _Travis: https://travis-ci.org/chapel-lang/sphinxcontrib-chapeldomain -.. _Coveralls: https://coveralls.io/r/chapel-lang/sphinxcontrib-chapeldomain?branch=master +.. _Github Actions: https://github.com/chapel-lang/sphinxcontrib-chapeldomain/actions/workflows/CI.yml +.. _Codecov: https://codecov.io/gh/chapel-lang/sphinxcontrib-chapeldomain .. _tox: https://tox.readthedocs.org/en/latest/ Release diff --git a/test-requirements.txt b/test-requirements.txt index bafde86..b420dc6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +1,3 @@ -coveralls flake8 mock nose