Skip to content

Commit

Permalink
test for python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
arpanda committed Jul 18, 2024
1 parent b2af48d commit 4fd8d6c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python package

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@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
-name: Download pytor file
run: |
wget https://storage.googleapis.com/cnvpytor_data/HepG2_WGS.pytor
- name: Run tests
run: |
pytest
13 changes: 13 additions & 0 deletions tests/test_viewer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import cnvpytor
from pathlib import Path


def test_module():
app = cnvpytor.Viewer(["HepG2_WGS.pytor"], bin_size=100000)
print(app.ls())


if __name__ == "__main__":
print("Welcome to python version test")
test_module()

0 comments on commit 4fd8d6c

Please sign in to comment.