diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..61327e1 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,52 @@ +name: Python application + +on: + push: + branches: [master] + pull_request: + +permissions: + contents: read + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macost-latest] + python-version: [3.7, 3.8, 3.9] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: List dependencies + run: | + pip freeze + + - name: Lint + run: | + pip install flake8, pydocstyle + flake8 deepdow tests + pydocstyle deepdow + + - name: Install dependencies + run: | + pip install .[docs,examples] + + - name: Run unittests + run: | + pytest + + - name: Run doctests + run: | + pip install sphinx + sphinx-build -b doctest docs/ temp_doctest + + - name: Run cover coverage + uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eccd6bb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -branches: - only: - - "master" - -language: python - -cache: pip - -dist: xenial # required for python3.7 - -python: - - "3.6" - - "3.8" - -install: - - pip install "pip<22" - - pip install .[dev,docs,examples] - -script: - - pip freeze - - pytest - - flake8 deepdow - - flake8 tests - - pydocstyle deepdow - - sphinx-build -b doctest docs/ temp_doctest - -after_success: - - codecov diff --git a/README.md b/README.md index caa6819..b4bf15b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ ![final](https://user-images.githubusercontent.com/18519371/79003829-afca6380-7b53-11ea-8322-f05577536957.png) -[![Build Status](https://travis-ci.com/jankrepl/deepdow.svg?branch=master)](https://travis-ci.com/jankrepl/deepdow) [![codecov](https://codecov.io/gh/jankrepl/deepdow/branch/master/graph/badge.svg)](https://codecov.io/gh/jankrepl/deepdow) [![Documentation Status](https://readthedocs.org/projects/deepdow/badge/?version=latest)](https://deepdow.readthedocs.io/en/latest/?badge=latest) [![PyPI version](https://badge.fury.io/py/deepdow.svg)](https://badge.fury.io/py/deepdow)