Skip to content

Commit

Permalink
Merge pull request #2 from origyZ/fix-workflow
Browse files Browse the repository at this point in the history
fix: requirements and workflow
  • Loading branch information
origyZ authored Jul 26, 2024
2 parents 6887cef + 1dfd8be commit 79c7ac9
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .coveragec
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ relative_files = True
exclude_lines =
^VERSION =
raise NotImplementedError

ignore_errors = True
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
cache: 'pip'
- run: pip install -U flake8
- name: Run python code lint
run: flake8 moltx
run: flake8 dilipredict

tests:
name: "Python ${{ matrix.py-version }} unit-tests"
Expand All @@ -43,18 +43,18 @@ jobs:
- run: pip install -r test-requirements.txt -U
- name: Run unit-tests
run: pytest tests
- name: Coveralls Parallel
uses: AndreMiras/coveralls-python-action@develop
with:
flag-name: "Integration Test - ${{ matrix.py-version }}"
# - name: Coveralls Parallel
# uses: AndreMiras/coveralls-python-action@develop
# with:
# flag-name: "Integration Test - ${{ matrix.py-version }}"
# parallel: true

report_coverage:
name: Report testing coverage
needs: tests
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
# report_coverage:
# name: Report testing coverage
# needs: tests
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: AndreMiras/coveralls-python-action@develop
# with:
# parallel-finished: true
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
einops
numpy==1.24.4
torch==1.13.1
torchvision==0.14.1
einops
pillow
scikit-learn
Empty file removed tests/test_datasets.py
Empty file.
2 changes: 1 addition & 1 deletion tests/test_piplines.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dilipredict import models, pipelines


def test_MutSmiReg(image_loader):
def test_DILIPredict(image_loader):
test_img_path = 'tests/data/test_img.tiff'
image_files = [
[test_img_path] * 10,
Expand Down

0 comments on commit 79c7ac9

Please sign in to comment.