Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# much of this is taken from the Empress main.yml file | ||
name: Main CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Download Q2 file | ||
run: wget -q https://raw.githubusercontent.com/qiime2/environment-files/master/latest/staging/qiime2-latest-py36-linux-conda.yml | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: q2 | ||
environment-file: qiime2-latest-py36-linux-conda.yml | ||
|
||
- name: Install conda reqs | ||
shell: bash -l {0} | ||
run: conda install --file ci/conda_requirements.txt -c biocore | ||
|
||
- name: Install auxillary CI packages | ||
shell: bash -l {0} | ||
run: conda install -c conda-forge coveralls flake8 nose | ||
|
||
- name: Install gemelli | ||
shell: bash -l {0} | ||
run: pip install -e . | ||
|
||
- name: Check style | ||
shell: bash -l {0} | ||
run: flake8 gemelli/*.py gemelli/tests/*.py setup.py | ||
|
||
- name: Run tests & coverage | ||
shell: bash -l {0} | ||
run: nosetests -v gemelli --with-coverage --cover-package=gemelli |