Skip to content

Commit 95fd523

Browse files
authored
Merge pull request #157 from trungdong/gh-actions
Using GitHub actions to run CI
2 parents 6f7ae21 + 9d53572 commit 95fd523

File tree

3 files changed

+39
-36
lines changed

3 files changed

+39
-36
lines changed

.github/workflows/CI.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: CI
3+
4+
on:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master, dev]
9+
workflow_dispatch:
10+
11+
jobs:
12+
tests:
13+
name: tox on ${{ matrix.python-version }}
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Setup Graphviz
23+
uses: ts-graphviz/setup-graphviz@v2
24+
- uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
cache: 'pip'
28+
- name: Install dependencies
29+
run: |
30+
python -VV
31+
python -m site
32+
python -m pip install --upgrade pip setuptools wheel
33+
python -m pip install --upgrade coverage[toml] tox tox-gh-actions
34+
35+
- name: Run tox targets for ${{ matrix.python-version }}
36+
run: python -m tox

.travis.yml

-30
This file was deleted.

README.rst

+3-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ Introduction
66
.. image:: https://badge.fury.io/py/prov.svg
77
:target: http://badge.fury.io/py/prov
88
:alt: Latest Release
9-
.. image:: https://travis-ci.org/trungdong/prov.svg
10-
:target: https://travis-ci.org/trungdong/prov
11-
:alt: Build Status
9+
.. image:: https://github.com/trungdong/prov/workflows/CI/badge.svg?branch=master
10+
:target: https://github.com/trungdong/prov/actions?workflow=CI
11+
:alt: CI Status
1212
.. image:: https://img.shields.io/coveralls/trungdong/prov.svg
1313
:target: https://coveralls.io/r/trungdong/prov?branch=master
1414
:alt: Coverage Status
15-
.. image:: https://landscape.io/github/trungdong/prov/master/landscape.svg?style=flat
16-
:target: https://landscape.io/github/trungdong/prov/master
17-
:alt: Code Health
1815
.. image:: https://img.shields.io/pypi/wheel/prov.svg
1916
:target: https://pypi.python.org/pypi/prov/
2017
:alt: Wheel Status

0 commit comments

Comments
 (0)