Skip to content

Commit

Permalink
Merge pull request #39 from Hendrik-code/workflows
Browse files Browse the repository at this point in the history
added tptbox to dev dependency
  • Loading branch information
Hendrik-code authored Nov 14, 2024
2 parents 9b02b0f + 6164a78 commit 6fef104
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Configure python
run: |
python -m pip install --upgrade pip
Expand All @@ -39,13 +40,10 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
- name: Test with pytest and create coverage report
run: |
pytest
- name: Test with pytest and create coverage report
run: |
python -m poetry run coverage run --source=TPTBox -m pytest
python -m poetry run coverage xml
python -m poetry run coverage run --source=spineps -m pytest
python -m poetry run coverage xml
- name: Upload coverage results to Codecov (Only on merge to main)
# Only upload to Codecov after a merge to the main branch
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ torchmetrics = "^1.1.2"
tqdm = "^4.66.1"
einops= "^0.6.1"
nnunetv2 = "2.4.2"
tptbox = "^0.2.1"
TPTBox = "^0.2.1"
antspyx = "0.4.2"
rich = "^13.6.0"


[tool.poetry.dev-dependencies]
pytest = "^7.4.4"
pre-commit = "*"
coverage = ">=7.0.1"
pytest-mock = "^3.6.0"
pandas = "^2.1.0"
joblib = "^1.3.2"
future = "^0.18.3"
flake8 = ">=4.0.1"
auxiliary = ">=0.1.0"
tqdm = ">=4.62.3"


[tool.poetry-dynamic-versioning]
Expand Down

0 comments on commit 6fef104

Please sign in to comment.