Skip to content

Commit

Permalink
Merge pull request #137 from phac-nml/github-actions-ci
Browse files Browse the repository at this point in the history
Github Action for CI
  • Loading branch information
peterk87 committed Feb 3, 2021
2 parents fae7ba1 + eaba288 commit d20a00b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 73 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: [ master, development ]
pull_request:
branches: [ master, development ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
pip install .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

14 changes: 9 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
|logo|

|conda| |nbsp| |pypi| |nbsp| |license| |nbsp| |nbsp| Master:|citest-master| |nbsp| Development:|citest-dev| |rtd|
|conda| |nbsp| |pypi| |nbsp| |rtd| |nbsp| |license|


====== ===========
Master |ci-master|
Dev |ci-dev|
====== ===========

.. |logo| image:: logo.png
:target: https://github.com/phac-nml/biohansel
.. |pypi| image:: https://badge.fury.io/py/bio-hansel.svg
:target: https://pypi.python.org/pypi/bio_hansel/
.. |license| image:: https://img.shields.io/badge/License-Apache%20v2.0-blue.svg
:target: http://www.apache.org/licenses/LICENSE-2.0
.. |citest-dev| image:: https://travis-ci.org/phac-nml/biohansel.svg?branch=development
:target: https://travis-ci.org/phac-nml/biohansel
.. |citest-master| image:: https://travis-ci.org/phac-nml/biohansel.svg?branch=master
:target: https://travis-ci.org/phac-nml/biohansel
.. |ci-master| image:: https://github.com/phac-nml/biohansel/workflows/CI/badge.svg?branch=master
:target: https://github.com/phac-nml/biohansel/actions
.. |ci-dev| image:: https://github.com/phac-nml/biohansel/workflows/CI/badge.svg?branch=development
:target: https://github.com/phac-nml/biohansel/actions
.. |conda| image:: https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg
:target: https://bioconda.github.io/recipes/bio_hansel/README.html
.. |nbsp| unicode:: 0xA0
Expand Down
12 changes: 0 additions & 12 deletions requirements_dev.txt

This file was deleted.

24 changes: 0 additions & 24 deletions tox.ini

This file was deleted.

0 comments on commit d20a00b

Please sign in to comment.