Skip to content

Commit f31450c

Browse files
committed
ci: timeout increase for sluggish CI worker
1 parent 3809d39 commit f31450c

File tree

5 files changed

+45
-11
lines changed

5 files changed

+45
-11
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434

3535
- uses: actions/setup-python@v2
3636
with:
37-
python-version: "3.8"
37+
python-version: '3.10'
38+
39+
- name: Python pkgs
40+
run: pip install numpy h5py pandas matplotlib
3841

3942
- name: install hdf5
4043
run: |
@@ -43,9 +46,6 @@ jobs:
4346
4447
- uses: actions/checkout@v2
4548

46-
- name: Python pkgs
47-
run: pip install --user -r requirements.txt
48-
4949
- run: cmake --preset multi -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
5050

5151
- name: Build Debug

.github/workflows/ci_macos.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: ci_macos
22

33
env:
44
CTEST_PARALLEL_LEVEL: 4
5-
CMAKE_BUILD_TYPE: Release
65
HOMEBREW_NO_INSTALL_CLEANUP: 1
76
FC: gfortran-11
87

@@ -28,6 +27,13 @@ jobs:
2827

2928
steps:
3029

30+
- uses: actions/setup-python@v2
31+
with:
32+
python-version: '3.10'
33+
34+
- name: install h5py
35+
run: pip install h5py
36+
3137
- run: brew install hdf5-mpi ninja libaec
3238

3339
- uses: actions/checkout@v2
@@ -48,3 +54,35 @@ jobs:
4854
run: cmake --build example/build --parallel
4955
- name: Test Examples
5056
run: ctest --test-dir example/build -V
57+
58+
59+
macos-build:
60+
needs: macos
61+
runs-on: macos-latest
62+
timeout-minutes: 20
63+
64+
strategy:
65+
matrix:
66+
shared: [true, false]
67+
68+
steps:
69+
70+
- uses: actions/checkout@v2
71+
72+
- name: Configure HDF5
73+
run: cmake -S scripts -B scripts/build -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
74+
75+
- name: Build/install HDF5
76+
run: cmake --build scripts/build --parallel
77+
78+
- run: cmake -B build -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }} -DCMAKE_PREFIX_PATH=${{ runner.temp }}
79+
- run: cmake --build build --parallel
80+
- run: ctest --test-dir build --preset default
81+
- run: cmake --install build
82+
83+
- name: configure examples
84+
run: cmake -S example -B example/build -DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
85+
- name: build Examples
86+
run: cmake --build example/build --parallel
87+
- name: Test Examples
88+
run: ctest --test-dir example/build -V

example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ target_link_libraries(example1 h5mpi::h5mpi MPI::MPI_Fortran MPI::MPI_C)
1616
add_test(NAME Example1 COMMAND example1)
1717
set_tests_properties(Example1 PROPERTIES
1818
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
19-
TIMEOUT 10
19+
TIMEOUT 30
2020
)

requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,6 @@ DISABLED $<NOT:$<BOOL:${h5py_ok}>>
125125
get_property(test_names DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY TESTS)
126126

127127
set_tests_properties(${test_names} PROPERTIES
128-
TIMEOUT 10
128+
TIMEOUT 30
129129
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
130130
)

0 commit comments

Comments
 (0)