-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Strelka and Mutect2 from somatic variant calling (#513)
* remove strelka and mutect2 * coveralls * stepS * test only for certain path * refactor env * remove cython * coveralls version unlock * remove --user from pip install * remove unused run * pip as module * remove activate * put activate back * good old source activate instead of conda * login bash * proper py.test * test help * get germline dynamic * remove unused lines * replace coveralls with codecov * codecov simpler
- Loading branch information
Showing
6 changed files
with
75 additions
and
23 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 |
---|---|---|
|
@@ -8,6 +8,9 @@ on: | |
- develop | ||
tags-ignore: | ||
- "**" | ||
paths: | ||
- 'BALSAMIC/containers/**' | ||
|
||
|
||
jobs: | ||
main: | ||
|
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,59 @@ | ||
name: PyTest and Coveralls | ||
|
||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
pytest_coveralls: | ||
name: run PyTest | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6] | ||
|
||
steps: | ||
# Checkout BALSAMIC | ||
- name: Git checkout | ||
id: git_checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Get branch name | ||
- name: Get branch name | ||
id: get_branch_name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" | ||
|
||
# Conda env create | ||
- name: setup conda | ||
id: setup_conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: balsamic | ||
environment-file: BALSAMIC/conda/balsamic.yaml | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Install BALSAMIC | ||
- name: Install BALSAMIC | ||
id: install_balsamic | ||
shell: bash -l {0} | ||
run: | | ||
conda activate balsamic | ||
pip install --no-cache-dir -r requirements-dev.txt -r requirements.txt | ||
pip install -e . | ||
# Run PyTest | ||
- name: Run PyTest | ||
id: pytest | ||
shell: bash -l {0} | ||
run: | | ||
conda activate balsamic | ||
py.test --cov-report=xml --cov=BALSAMIC -rsxv tests/* | ||
# Run Codecov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ./coverage.xml | ||
flags: unittests | ||
fail_ci_if_error: true |
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pytest>=3.7.1 | ||
pytest-cov==2.8.1 | ||
coveralls==2.0.0 | ||
coveralls | ||
pylint |