From 31e8631f7287f33515053719f855359a19f38584 Mon Sep 17 00:00:00 2001 From: Gibraan Rahman Date: Mon, 7 Jun 2021 10:11:59 -0700 Subject: [PATCH 1/2] Remove weird Icon thing --- "Icon\r" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "Icon\r" diff --git "a/Icon\r" "b/Icon\r" deleted file mode 100644 index e69de29..0000000 From b2e5a15b4c6f6ca0e35301d1a42c8ae9c38c1b19 Mon Sep 17 00:00:00 2001 From: Gibraan Rahman Date: Mon, 7 Jun 2021 11:44:05 -0700 Subject: [PATCH 2/2] Initial commit of workflow file --- .github/workflows/main.yml | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b419216 --- /dev/null +++ b/.github/workflows/main.yml @@ -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