Skip to content

Add files via upload #21

Add files via upload

Add files via upload #21

Workflow file for this run

name: build
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Create micromamba env. for package
uses: mamba-org/setup-micromamba@v1
with:
generate-run-shell: true
environment-file: hicberg.yaml
- name: Install package
run: |
pip install .
shell: micromamba-shell {0}
- name: Install additional packages
run: |
sudo apt install bowtie2
conda install bioconda::samtools
conda install bioconda::bedtools
conda install bioconda::ucsc-bedgraphtobigwig
conda install bioconda::minimap2
conda install bioconda::bwa
shell: micromamba-shell {0}
- name: Check installed package
run: |
hicberg --version
bowtie2 --version
minimap2 --version
shell: micromamba-shell {0}
- name: Lint and test
run: |
pip install pytest-pylint pytest pytest-cov pylint codecov mappy
pytest --pylint --pylint-error-types=EF --pylint-rcfile=.pylintrc --doctest-modules --doctest-modules hicberg
coverage run --source=hicberg -m pytest -v tests
coverage report -m
coverage run --source=hicberg -m pytest -v tests --cov-report=xml
coverage xml
shell: micromamba-shell {0}
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}