Skip to content

Commit

Permalink
Dev (#111)
Browse files Browse the repository at this point in the history
* kill bob the builder

* pip publish without semantic release

* oops

* adding checkout to pip-squeak

* fixed main.yml

* fixed main.yml

* fixed main.yml

* skip autopipeline in pip testing

* adding code coverage

* removed pytest-xdist

* xdist removed, -n flag gone
  • Loading branch information
skim2257 authored May 23, 2024
1 parent 054d1b4 commit 48fcfd0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
35 changes: 34 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,42 @@ jobs:

- name: Pip install
run: pip install .

- name: Run tests
run: pip install pytest && pytest tests -v
run: |
pip install pytest pytest-cov
pytest tests -s -v --cov --cov-report xml:coverage-report/coverage.xml
- name: Upload coverage report artifact to be used by Codecov
# only upload if matrix.os is ubuntu-latest and matrix.python-version is 3.12
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: coverage-report

codecov:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Download coverage report artifact
uses: actions/download-artifact@v2
with:
name: coverage-report
path: coverage-report

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage-report/coverage.xml
fail_ci_if_error: true
verbose: true
name: codecov-umbrella

cd:
permissions:
contents: write
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ betapipeline = "imgtools.autopipeline_refactored:main"
pytest = "^8.2.0"
ruff = "^0.4.4"
pytest-cov = ">=4.0.0"
pytest-xdist = ">=3.5.0"

[tool.poetry.extras]
torch = ["torch", "torchio"]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="med-imagetools",
version="1.2.0.2",
version="1.3.0.1",
author="Sejin Kim, Michal Kazmierski, Kevin Qu, Vishwesh Ramanathan, Benjamin Haibe-Kains",
author_email="benjamin.haibe.kains@utoronto.ca",
description="Transparent and reproducible image processing pipelines in Python.",
Expand All @@ -28,5 +28,5 @@
"License :: OSI Approved :: Apache Software License",
"Development Status :: 2 - Pre-Alpha"
],
python_requires='>=3.6',
python_requires='>=3.7',
)

0 comments on commit 48fcfd0

Please sign in to comment.