diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 0000000..22e889b --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -0,0 +1,34 @@ +name: Python Tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Miniconda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: 3.7 + + - name: Install dependencies + shell: bash -l {0} + run: | + conda create -n tracepyci python=3.7 --yes + conda activate tracepyci + conda install --yes numpy scipy matplotlib scikit-learn pandas pytest pytest-cov + pip install . + + - name: Run tests + shell: bash -l {0} + run: | + conda activate tracepyci + pytest tests/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e36d618..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: python -before_install: - - wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh - - chmod +x miniconda.sh - - ./miniconda.sh -b - - export PATH=/home/travis/miniconda3/bin:$PATH -install: - - conda create -n tracepyci python=3.7 --yes - - source activate tracepyci - - >- - conda install --yes - numpy - scipy - matplotlib> - scikit-learn - pandas - pytest - pytest-cov - coveralls - - pip install . -script: - - pytest --cov=tracepy tests/ -notifications: - email: false diff --git a/README.md b/README.md index 59c5e27..6689f6c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ ## TracePy -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/454c6504e63f4accaa9353e7dcfda00e)](https://app.codacy.com/app/gavinniendorf/tracepy?utm_source=github.com&utm_medium=referral&utm_content=GNiendorf/tracepy&utm_campaign=Badge_Grade_Dashboard) -[![Build Status](https://travis-ci.org/GNiendorf/tracepy.svg?branch=master)](https://travis-ci.org/GNiendorf/tracepy) [![Documentation Status](https://readthedocs.org/projects/tracepy/badge/?version=latest)](https://tracepy.readthedocs.io/en/latest/?badge=latest) [![PyPI version](https://badge.fury.io/py/tracepy.svg)](https://badge.fury.io/py/tracepy)