Skip to content

test python version #21

test python version

test python version #21

Workflow file for this run

name: Test for python versions
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install .
pip install pytest
- name: Install `gcsfuse`
run: |
echo "deb http://packages.cloud.google.com/apt gcsfuse-$(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /tmp/packages-cloud-google-com-apt-keyring.gpg
sudo mv /tmp/packages-cloud-google-com-apt-keyring.gpg /etc/apt/trusted.gpg.d/
sudo apt-get update
sudo apt-get install gcsfuse -y
- name: Mount Google Cloud Storage bucket
run: |
sudo mkdir -p /mnt/gcs-bucket
sudo chown $USER:$USER /mnt/gcs-bucket
gcsfuse --implicit-dirs --anonymous-access --only-dir platinum-genomes genomics-public-data /mnt/gcs-bucket
- name: List bucket contents
run: ls /mnt/gcs-bucket
- name: Download pytor file
run: |
wget https://storage.googleapis.com/cnvpytor_data/HepG2_WGS.pytor
- name: check cnvpytor
run: |
cnvpytor -h
- name: run cnvpytor
run: |
cnvpytor -root test.pytor -rd /mnt/gcs-bucket/bam/NA12877_S1.bam -v d
- name: Run tests
run: |
pytest -s