diff --git a/.github/workflows/qiita-plugin-ci.yml b/.github/workflows/qiita-plugin-ci.yml new file mode 100644 index 0000000..0050431 --- /dev/null +++ b/.github/workflows/qiita-plugin-ci.yml @@ -0,0 +1,52 @@ +# name: qiita-files CI + +on: + push: + branches: [ dev ] + pull_request: + +jobs: + # derived from https://github.com/actions/example-services/blob/master/.github/workflows/postgres-service.yml + main: + runs-on: ubuntu-latest + + steps: + # Downloads a copy of the code in your repository before running CI tests + - name: Check out repository code + uses: actions/checkout@v2 + + - name: Setup for conda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: 3.6 + + - name: Basic dependencies install + shell: bash -l {0} + run: | + conda create --yes -n qiita-files python=3.6 h5py pandas scipy numpy + conda activate qiita-files + pip install . + pip install sphinx sphinx-bootstrap-theme nose-timer codecov Click + + - name: Main tests + shell: bash -l {0} + run: | + conda activate qiita-files + nosetests --with-doctest --with-coverage --cover-package=qiita_files + + lint: + runs-on: ubuntu-latest + steps: + - name: flake8 + uses: actions/setup-python@v2 + with: + python-version: 3.6 + - name: install dependencies + run: python -m pip install --upgrade pip + - name: Check out repository code + uses: actions/checkout@v2 + - name: lint + run: | + pip install -q flake8 + flake8 qiita_files setup.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 74e1029..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: python -sudo: false -env: - - PYTHON_VERSION=3.5 - - PYTHON_VERSION=3.6 -before_install: - - wget https://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 - # Update conda itself - - conda update --yes conda -install: - - travis_retry conda create --yes -n env_name python=$PYTHON_VERSION pip nose flake8 coverage 'h5py>=2.3.1' 'pandas>=0.18' 'scipy>0.13.0' 'numpy>=1.7' - - source activate env_name - - travis_retry pip install . -script: - - nosetests --with-doctest --with-coverage --cover-package=qiita_files - - flake8 qiita_files setup.py -after_success: - - coveralls