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 4fd8d6c commit 9c8bced
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package
name: Test for python versions

on: [push, pull_request]

Expand All @@ -24,9 +24,10 @@ jobs:
pip install pytest
pip install -r requirements.txt
-name: Download pytor file
run: |
wget https://storage.googleapis.com/cnvpytor_data/HepG2_WGS.pytor
- name: Download pytor file
run: |
wget https://storage.googleapis.com/cnvpytor_data/HepG2_WGS.pytor -P ./downloads

- name: Run tests
run: |
Expand Down
8 changes: 6 additions & 2 deletions tests/test_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@


def test_module():
app = cnvpytor.Viewer(["HepG2_WGS.pytor"], bin_size=100000)
print(app.ls())
pytor_path = "./downloads/HepG2_WGS.pytor"
if Path(pytor_path).exists():
app = cnvpytor.Viewer(["HepG2_WGS.pytor"], bin_size=100000)
print(app.ls())
else:
print(f"Incorrect Path: {pytor_path}")


if __name__ == "__main__":
Expand Down

0 comments on commit 9c8bced

Please sign in to comment.