Add files via upload #21
This file contains hidden or 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: 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 }} |