Skip to content

Commit

Permalink
Merge pull request #157 from trungdong/gh-actions
Browse files Browse the repository at this point in the history
Using GitHub actions to run CI
  • Loading branch information
trungdong authored May 11, 2024
2 parents 6f7ae21 + 9d53572 commit 95fd523
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 36 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

9 changes: 3 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95fd523

Please sign in to comment.