Skip to content

Commit

Permalink
Replace Travis CI workflow with GitHub Actions workflow; update READM…
Browse files Browse the repository at this point in the history
…E badge.
  • Loading branch information
lapets committed Jan 25, 2022
1 parent 8b29a01 commit a36e967
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 21 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint-test-cover.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: lint-test-cover
on:
push
jobs:
lint_test_cover:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']
name: "Python ${{ matrix.python-version }}"
steps:
- uses: actions/checkout@v2
- name: Install Python.
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Lint and test module.
run: |
pip install -U pylint coverage nose .
python -m pylint bfcl # Check against linting rules.
python -m nose --cover-erase # Test using nose.
- name: Publish coverage results.
run: |
pip install -U pylint coveralls
python -m coveralls --service=github # Submit to coveralls.
if: matrix.python-version == '3.8'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ bfcl

Bristol Fashion Circuit Library (BFCL) for working with circuit definitions represented using the Bristol Fashion.

|pypi| |travis| |coveralls|
|pypi| |actions| |coveralls|

.. |pypi| image:: https://badge.fury.io/py/bfcl.svg
:target: https://badge.fury.io/py/bfcl
:alt: PyPI version and link.

.. |travis| image:: https://travis-ci.com/nthparty/bfcl.svg?branch=master
:target: https://travis-ci.com/nthparty/bfcl
.. |actions| image:: https://github.com/nthparty/bfcl/workflows/lint-test-cover/badge.svg
:target: https://github.com/nthparty/bfcl/actions/workflows/lint-test-cover.yml
:alt: GitHub Actions status.

.. |coveralls| image:: https://coveralls.io/repos/github/nthparty/bfcl/badge.svg?branch=master
:target: https://coveralls.io/github/nthparty/bfcl?branch=master
Expand Down

0 comments on commit a36e967

Please sign in to comment.