Skip to content

Commit

Permalink
update numpy and move code coverage badge update to release tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurence Jackson committed Jan 3, 2023
1 parent 01046cb commit 19152b4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/tests_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,3 @@ jobs:
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml

- name: Update the coverage Badge
if: github.event.pull_request.base.ref == 'main' # if pull request is merging into main
uses: schneegans/[email protected]
with:
auth: ${{ secrets.PYTEST_COVERAGE_COMMENT }}
gistID: ba102d5f3e592fcd50451c2eff8a803d
filename: hazen_pytest-coverage-comment.json
label: Test coverage
message: ${{ steps.coverageComment.outputs.coverage }}
color: ${{ steps.coverageComment.outputs.color }}
namedLogo: python
17 changes: 17 additions & 0 deletions .github/workflows/tests_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,20 @@ jobs:
set -Eeuxo pipefail
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=hazenlib tests/ | tee pytest-coverage.txt ; echo $?
- name: Pytest coverage comment
id: coverageComment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml

- name: Update the coverage Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.PYTEST_COVERAGE_COMMENT }}
gistID: ba102d5f3e592fcd50451c2eff8a803d
filename: hazen_pytest-coverage-comment.json
label: Test coverage
message: ${{ steps.coverageComment.outputs.coverage }}
color: ${{ steps.coverageComment.outputs.color }}
namedLogo: python
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# After making changes for core components please update install_requires in setp.py as well
pydicom==2.2.2
numpy==1.21.4
numpy==1.24.1
matplotlib==3.5.1
pytest==7.1.2
docopt==0.6.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from hazenlib import __version__

install_requires = ['pydicom==2.2.2',
'numpy==1.21.4',
'numpy==1.24.1',
'matplotlib==3.5.1',
'docopt==0.6.2',
'opencv-python-headless==4.6.0.66',
Expand Down

0 comments on commit 19152b4

Please sign in to comment.