fix: umi coverage qc #6913
Workflow file for this run
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
name: pytests | |
on: | |
pull_request: | |
paths-ignore: | |
- "CHANGELOG.rst" | |
- "docs/**" | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "CHANGELOG.rst" | |
- "docs/**" | |
jobs: | |
pytest_coveralls: | |
name: run PyTest | |
runs-on: ubuntu-22.04 | |
steps: | |
# Checkout BALSAMIC | |
- name: Git checkout | |
id: git_checkout | |
uses: actions/checkout@v3 | |
# 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 | |
- name: Install the HTML to PDF renderer | |
run: sudo apt-get update && sudo apt-get install -y wkhtmltopdf | |
# Install BALSAMIC | |
- name: Install BALSAMIC | |
id: install_balsamic | |
shell: bash -l {0} | |
run: | | |
conda activate balsamic | |
pip install --no-cache-dir . | |
# Install pytest coveralls dependencies | |
- name: Install PyTest and Coveralls | |
id: install_pytest | |
shell: bash -l {0} | |
run: | | |
conda activate balsamic | |
pip install --no-cache-dir -r requirements-dev.txt | |
# Run PyTest | |
- name: Run PyTest | |
id: pytest | |
shell: bash -l {0} | |
run: | | |
conda activate balsamic | |
py.test --cov-report=xml --cov=BALSAMIC -rsxv tests/* | |
env: | |
SENTIEON_LICENSE: dummy_license | |
SENTIEON_INSTALL_DIR: dummy_install_dir | |
# Run Codecov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
flags: unittests | |
fail_ci_if_error: true | |
verbose: true |