build(deps): Update pybedtools requirement from <=0.9.0 to <=0.9.1 #627
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: CapCruncher CI | |
on: | |
push: | |
pull_request: | |
branches: [master, develop] | |
workflow_dispatch: | |
env: | |
CACHE_NUMBER: 1 | |
jobs: | |
install-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Linux dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install libcurl4-openssl-dev | |
# - name: Install Mac dependencies | |
# if: matrix.os == 'macos-latest' | |
# run: | | |
# brew install curl-openssl coreutils | |
- name: Restore bowtie2 cache | |
uses: actions/cache@v3 | |
with: | |
path: tests/data/data_for_pipeline_run/chr14_bowtie2_indicies/*.bt2 | |
key: ${{ env.CACHE_NUMBER }} | |
id: bowtie2_cache | |
- name: Get Date | |
id: get-date | |
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT | |
shell: bash | |
- name: Setup Mambaforge | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
miniforge-version: latest | |
activate-environment: test | |
use-mamba: true | |
- name: Cache Conda env | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.CONDA }}/envs | |
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ | |
steps.get-date.outputs.today }}-${{ | |
hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER}} | |
env: | |
# Increase this value to reset cache if etc/example-environment.yml has not changed | |
CACHE_NUMBER: 0 | |
id: cache-conda-env | |
- name: Update environment | |
run: mamba env update -n test -f environment.yml | |
if: steps.cache-conda-env.outputs.cache-hit != 'true' | |
- name: Check installed packages | |
shell: bash -el {0} | |
run: | | |
mamba info | |
- name: Install the package | |
shell: bash -el {0} | |
run: | | |
pip install .[full] | |
- name: Test with pytest and generate report | |
shell: bash -el {0} | |
run: | | |
pip install pytest-cov pytest-order pytest-xdist git+https://github.com/alsmith151/CoolBox.git | |
pytest -vv -s --log-cli-level info --cov=./ --cov-report=xml --cores 4 | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
env_vars: OS,PYTHON | |
token: ${{secrets.CODECOV_TOKEN}} | |
fail_ci_if_error: true | |
files: ./coverage.xml | |
verbose: true |