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/version.
  • Loading branch information
lapets committed Dec 17, 2021
1 parent 87deca7 commit f16849f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 25 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 additive # 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.

8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ additive

Data structure for representing additive secret shares of integers, designed for use within secure multi-party computation (MPC) protocol implementations.

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

.. |pypi| image:: https://badge.fury.io/py/additive.svg
:target: https://badge.fury.io/py/additive
Expand All @@ -14,9 +14,9 @@ Data structure for representing additive secret shares of integers, designed for
:target: https://additive.readthedocs.io/en/latest/?badge=latest
:alt: Read the Docs documentation status.

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

.. |coveralls| image:: https://coveralls.io/repos/github/nthparty/additive/badge.svg?branch=main
:target: https://coveralls.io/github/nthparty/additive?branch=main
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# The lines below can be parsed by `docs/conf.py`.
name = "additive"
version = "0.1.1"
version = "0.2.0"

setup(
name=name,
Expand Down

0 comments on commit f16849f

Please sign in to comment.