Skip to content

Commit

Permalink
Replace Travis CI workflow with GitHub Actions workflow; update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapets committed Dec 18, 2021
1 parent 773d162 commit a5ea2b4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint-test-cover-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: lint-test-cover-docs
on:
push
jobs:
lint_test_cover_docs:
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 circuitry # 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 }}
- name: Test auto-generation of documentation.
run: |
pip install -U -r docs/requirements.txt
cd docs && sphinx-apidoc -f -E --templatedir=_templates -o _source .. ../setup.py && make html && cd ..
20 changes: 0 additions & 20 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 @@ circuitry

Embedded domain-specific combinator library for assembling abstract definitions of logic circuits.

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

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

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

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

0 comments on commit a5ea2b4

Please sign in to comment.