Skip to content

Commit f6f2e68

Browse files
authored
Merge pull request #8 from misialq/ci-improvements
MAINT: CI updates
2 parents c98dc84 + 14fd8d7 commit f6f2e68

File tree

10 files changed

+41
-59
lines changed

10 files changed

+41
-59
lines changed

.coveragerc

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[run]
2+
source=q2_moshpit
23
branch = True
34
omit =
45
*/tests*
@@ -7,6 +8,7 @@ omit =
78
versioneer.py
89

910
[report]
11+
fail_under = 90
1012
omit =
1113
*/tests*
1214
*/__init__.py

.github/workflows/ci.yml

+26-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,32 @@ jobs:
2929
pip install -q flake8
3030
flake8
3131
32-
build-and-test:
32+
coverage:
3333
needs: lint
34+
runs-on: ubuntu-latest
35+
defaults:
36+
run:
37+
shell: bash -l {0}
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: conda-incubator/setup-miniconda@v2
41+
with:
42+
activate-environment: q2-shotgun-test
43+
mamba-version: "*"
44+
channels: conda-forge
45+
- name: Run tests with coverage
46+
run: |
47+
mamba install -c https://packages.qiime2.org/qiime2/2022.4/tested -c conda-forge -c bioconda -c defaults -y --file requirements.txt
48+
make dev
49+
qiime dev refresh-cache
50+
make test-cov
51+
- name: Upload coverage to Codecov
52+
uses: codecov/codecov-action@v2
53+
with:
54+
fail_ci_if_error: true
55+
56+
build-and-test:
57+
needs: coverage
3458
strategy:
3559
matrix:
3660
os: [ubuntu-latest, macos-latest]
@@ -46,6 +70,5 @@ jobs:
4670
with:
4771
package-name: q2-moshpit
4872
additional-tests: pytest --pyargs q2_moshpit
49-
# TODO: update this to `release` when tagging release
50-
build-target: staged
73+
build-target: dev
5174
library-token: ${{ secrets.LIBRARY_TOKEN }}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2021, QIIME 2 development team.
3+
Copyright (c) 2022, QIIME 2 development team.
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ test: all
1212
py.test
1313

1414
test-cov: all
15-
py.test --cov=q2_fondue
15+
coverage run -m pytest
16+
coverage xml
1617

1718
install: all
1819
$(PYTHON) setup.py install
1920

2021
dev: all
22+
pip install coverage
2123
pip install -e .
2224

2325
clean: distclean

ci/recipe/meta.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ requirements:
1919

2020
run:
2121
- qiime2 {{ release }}.*
22+
- q2-types-genomics {{ release }}.*
23+
- q2templates {{ release }}.*
2224

2325
test:
2426
imports:

ci/recipe/test_build.sh

-51
This file was deleted.

q2_moshpit/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ----------------------------------------------------------------------------
2-
# Copyright (c) 2021, QIIME 2 development team.
2+
# Copyright (c) 2022, QIIME 2 development team.
33
#
44
# Distributed under the terms of the Modified BSD License.
55
#

q2_moshpit/plugin_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ----------------------------------------------------------------------------
2-
# Copyright (c) 2021, QIIME 2 development team.
2+
# Copyright (c) 2022, QIIME 2 development team.
33
#
44
# Distributed under the terms of the Modified BSD License.
55
#

requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
q2-types
2+
q2-types-genomics
3+
q2cli
4+
q2templates

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ----------------------------------------------------------------------------
2-
# Copyright (c) 2021, QIIME 2 development team.
2+
# Copyright (c) 2022, QIIME 2 development team.
33
#
44
# Distributed under the terms of the Modified BSD License.
55
#

0 commit comments

Comments
 (0)