Skip to content

Commit

Permalink
Merge pull request #28 from UCL/27-github-actions
Browse files Browse the repository at this point in the history
27 GitHub actions
  • Loading branch information
tdowrick committed May 7, 2020
2 parents 4783f71 + 09abdd8 commit e33f93b
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 112 deletions.
2 changes: 0 additions & 2 deletions .coveralls.yml
@@ -1,3 +1 @@
service_name: travis-ci
repo_token: nBvOXbcbM0lC1gy3CxgWxWmMt887zQWug

55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,55 @@
on: push

jobs:

test:
strategy:
matrix:
os: [ubuntu-18.04, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tox
run: |
tox
- name: Run coveralls
run: |
pip install coveralls pyyaml
coveralls
deploy:
runs-on: ubuntu-18.04
needs: test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.6

- name: Install dependencies
run: python -m pip install wheel twine setuptools

- name: Build wheel
run: |
python setup.py sdist
- name: Publish package if tagged release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
72 changes: 0 additions & 72 deletions .gitlab-ci.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -6,9 +6,9 @@ scikit-surgerynditracker
:width: 128px
:target: https://github.com/UCL/scikit-surgerynditracker

.. image:: https://travis-ci.com/UCL/scikit-surgerynditracker.svg?branch=master
:target: https://travis-ci.com/github/UCL/scikit-surgerynditracker
:alt: Travis CI test status
.. image:: https://github.com/UCL/scikit-surgerynditracker/workflows/.github/workflows/ci.yml/badge.svg
:target: https://github.com/UCL/scikit-surgerynditracker/actions/
:alt: GitHub CI test status

.. image:: https://coveralls.io/repos/github/UCL/scikit-surgerynditracker/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/UCL/scikit-surgerynditracker?branch=master
Expand Down
2 changes: 1 addition & 1 deletion sksurgerynditracker/nditracker.py
Expand Up @@ -8,8 +8,8 @@

from six import int2byte
from numpy import full, nan, reshape, transpose
import ndicapy
from sksurgerycore.baseclasses.tracker import SKSBaseTracker
import ndicapy

def _check_config_aurora(configuration):
"""
Expand Down

0 comments on commit e33f93b

Please sign in to comment.