Skip to content

Commit 554eef1

Browse files
authored
Fix broken actions (#19)
1 parent 65f7b30 commit 554eef1

File tree

7 files changed

+17
-21
lines changed

7 files changed

+17
-21
lines changed

.coveragerc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
[run]
22
omit =
33
libjpeg/tests/*
4-
libjpeg/scripts/*
54
libjpeg/src/*
6-
pydicom/*
7-
pydicom-master/*

.github/workflows/pytest-builds.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ jobs:
3030
- name: Install package and dependencies
3131
run: |
3232
python -m pip install -U pip
33-
python -m pip install pytest coverage pytest-cov
33+
python -m pip install pytest cython numpy
3434
python -m pip install . -v
3535
python -m pip install git+https://github.com/pydicom/pylibjpeg-data
3636
3737
- name: Run pytest
3838
run: |
39-
pytest --cov libjpeg
39+
pytest
4040
4141
- name: Install pydicom release and rerun pytest
4242
run: |
4343
pip install pydicom
44-
pytest --cov libjpeg
44+
pytest
4545
4646
osx:
4747
runs-on: macos-latest
@@ -65,17 +65,17 @@ jobs:
6565
run: |
6666
python -m pip install -U pip
6767
python -m pip install . -v
68-
python -m pip install pytest coverage pytest-cov
68+
python -m pip install pytest
6969
python -m pip install git+https://github.com/pydicom/pylibjpeg-data
7070
7171
- name: Run pytest
7272
run: |
73-
pytest --cov libjpeg
73+
pytest
7474
7575
- name: Install pydicom release and rerun pytest
7676
run: |
7777
pip install pydicom
78-
pytest --cov libjpeg
78+
pytest
7979
8080
ubuntu:
8181
runs-on: ubuntu-latest
@@ -104,18 +104,18 @@ jobs:
104104
105105
- name: Run pytest
106106
run: |
107-
pytest --cov libjpeg
107+
pytest --cov=libjpeg libjpeg/tests
108108
109109
- name: Install pydicom release and rerun pytest
110110
run: |
111111
pip install pydicom
112-
pytest --cov libjpeg
112+
pytest --cov=libjpeg --cov-append libjpeg/tests
113113
114114
- name: Switch to pydicom dev and rerun pytest
115115
run: |
116116
pip uninstall -y pydicom
117117
pip install git+https://github.com/pydicom/pydicom
118-
pytest --cov libjpeg
118+
pytest --cov=libjpeg --cov-append libjpeg/tests
119119
120120
- name: Send coverage results
121121
if: ${{ success() }}

.github/workflows/wheel-builds.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: wheels
33
on:
44
push:
55
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
68

79
jobs:
810
build_wheels:
@@ -30,7 +32,7 @@ jobs:
3032
run: |
3133
python -m pip install cibuildwheel==1.4.2
3234
33-
- name: Build wheel
35+
- name: Build wheels
3436
run: |
3537
python --version
3638
python -m cibuildwheel --output-dir wheelhouse

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![codecov](https://codecov.io/gh/pydicom/pylibjpeg-libjpeg/branch/master/graph/badge.svg)](https://codecov.io/gh/pydicom/pylibjpeg-libjpeg)
2-
[![Build Status](https://travis-ci.org/pydicom/pylibjpeg-libjpeg.svg?branch=master)](https://travis-ci.org/pydicom/pylibjpeg-libjpeg)
2+
[![Build Status](https://github.com/pydicom/pylibjpeg-libjpeg/workflows/build/badge.svg)](https://github.com/pydicom/pylibjpeg-libjpeg/actions?query=workflow%3Abuild)
33
[![PyPI version](https://badge.fury.io/py/pylibjpeg-libjpeg.svg)](https://badge.fury.io/py/pylibjpeg-libjpeg)
44
[![Python versions](https://img.shields.io/pypi/pyversions/pylibjpeg-libjpeg.svg)](https://img.shields.io/pypi/pyversions/pylibjpeg-libjpeg.svg)
55

codecov.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,5 @@ coverage:
1212
threshold: 0.1%
1313

1414
ignore:
15-
- "pylibjpeg/tests"
16-
- "pylibjpeg/src"
17-
- "pylibjpeg/scripts"
18-
- "pylibjpeg/data"
19-
- "pydicom-master"
20-
- "pydicom"
15+
- "libjpeg/tests"
16+
- "libjpeg/src"

libjpeg/tests/test_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ def test_3s_Nf_ybr_422(self):
300300
assert 'uint8' == arr.dtype
301301
assert (ds.NumberOfFrames, ds.Rows, ds.Columns, 3) == arr.shape
302302

303+
# Gives a MemoryError in GitHub CI build otherwise
304+
arr = arr[0:10, ...]
303305
arr = convert_color_space(arr, 'YBR_FULL', 'RGB')
304306

305307
#self.plot(arr, index=3)

libjpeg/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def decode(arr, colour_transform=0, reshape=True):
8787
status = status.decode("utf-8")
8888
code, msg = status.split("::::")
8989
code = int(code)
90-
print(params)
9190

9291
if code == 0 and reshape is True:
9392
bpp = ceil(params["precision"] / 8)

0 commit comments

Comments
 (0)