Skip to content

Commit

Permalink
CI: Update Ubuntu image to 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaiter committed May 6, 2024
1 parent 2395d93 commit 27286f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Install specific version 2.3 of OpenJPEG library
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
publish:
if: (github.event_name == 'push' && (contains(github.ref, 'main') || startsWith(github.ref, 'release/'))) || github.event_name == 'release'
needs: build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,25 @@ private static Stream<Class<? extends ImageReader>> tiffReaders() {
}
}

@ParameterizedTest
@MethodSource("tiffReaders")
public void testReadInfo(Class<? extends ImageReader> readerClass) throws IOException {
ImageReader reader = getReader(readerClass);
assertThat(reader.getNumImages(true)).isEqualTo(6);
assertThat(reader.getWidth(0)).isEqualTo(2064);
assertThat(reader.getHeight(0)).isEqualTo(2553);
assertThat(reader.getWidth(1)).isEqualTo(1032);
assertThat(reader.getHeight(1)).isEqualTo(1276);
assertThat(reader.getWidth(2)).isEqualTo(516);
assertThat(reader.getHeight(2)).isEqualTo(638);
assertThat(reader.getWidth(3)).isEqualTo(258);
assertThat(reader.getHeight(3)).isEqualTo(319);
assertThat(reader.getWidth(4)).isEqualTo(129);
assertThat(reader.getHeight(4)).isEqualTo(159);
assertThat(reader.getWidth(5)).isEqualTo(64);
assertThat(reader.getHeight(5)).isEqualTo(79);
}

@ParameterizedTest
@MethodSource("tiffReaders")
public void testReadFull(Class<? extends ImageReader> readerClass) throws IOException {
Expand Down

0 comments on commit 27286f3

Please sign in to comment.