diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..ca8dfef --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,36 @@ +--- +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master, dev] + workflow_dispatch: + +jobs: + tests: + name: tox on ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + - name: Setup Graphviz + uses: ts-graphviz/setup-graphviz@v2 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - name: Install dependencies + run: | + python -VV + python -m site + python -m pip install --upgrade pip setuptools wheel + python -m pip install --upgrade coverage[toml] tox tox-gh-actions + + - name: Run tox targets for ${{ matrix.python-version }} + run: python -m tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4a55bd0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -sudo: false -language: python -python: - - "3.6" - - "3.7" - - "3.8" - - "3.9" - - "pypy3" - -addons: - apt: - packages: - - graphviz - -cache: - - pip - - apt - -# Install packages -install: - - pip install --upgrade setuptools - - pip install -r requirements.txt - - pip install coverage coveralls - -# Run test -script: - - coverage run setup.py test - -after_success: - - coveralls diff --git a/README.rst b/README.rst index df801af..fb45ba5 100644 --- a/README.rst +++ b/README.rst @@ -6,15 +6,12 @@ Introduction .. image:: https://badge.fury.io/py/prov.svg :target: http://badge.fury.io/py/prov :alt: Latest Release -.. image:: https://travis-ci.org/trungdong/prov.svg - :target: https://travis-ci.org/trungdong/prov - :alt: Build Status +.. image:: https://github.com/trungdong/prov/workflows/CI/badge.svg?branch=master + :target: https://github.com/trungdong/prov/actions?workflow=CI + :alt: CI Status .. image:: https://img.shields.io/coveralls/trungdong/prov.svg :target: https://coveralls.io/r/trungdong/prov?branch=master :alt: Coverage Status -.. image:: https://landscape.io/github/trungdong/prov/master/landscape.svg?style=flat - :target: https://landscape.io/github/trungdong/prov/master - :alt: Code Health .. image:: https://img.shields.io/pypi/wheel/prov.svg :target: https://pypi.python.org/pypi/prov/ :alt: Wheel Status