-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move content of benchmark_scripts readme into doc/developers * Update CI attempt 1 * Actually use the right syntax * Force python version to prevent MacOS using python2.7 * Rename files to better match the data they produce * Aplease windows syntax * Remove pip cache due to known windows bug: actions/setup-python#436
- Loading branch information
1 parent
47a0e12
commit 7be30ef
Showing
7 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,18 +54,18 @@ jobs: | |
- name: Set up MATLAB | ||
uses: matlab-actions/[email protected] | ||
|
||
- name: Produce MATLAB unit test data | ||
uses: matlab-actions/run-command@v1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
command: cd('tdms/tests/unit/benchmark_scripts/'), setup_unit_tests | ||
python-version: '3.9' | ||
|
||
# ------------------------------------------------------------------------------- | ||
# Ubuntu | ||
- name: Install dependencies for Ubuntu | ||
if: ${{ contains(matrix.os, 'ubuntu') }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libfftw3-dev libhdf5-dev libgomp1 python3 | ||
sudo apt-get install libfftw3-dev libhdf5-dev libgomp1 | ||
# ------------------------------------------------------------------------------- | ||
# Windows | ||
|
@@ -125,6 +125,20 @@ jobs: | |
run: | | ||
cmake --build . --config ${{ matrix.build_type }} | ||
# ------------------------------------------------------------------------------- | ||
# Unit tests | ||
- name: Produce MATLAB unit test data | ||
if: matrix.build_testing == 'ON' | ||
uses: matlab-actions/run-command@v1 | ||
with: | ||
command: cd('tdms/tests/unit/benchmark_scripts/'), setup_unit_tests | ||
|
||
- name: Produce hdf5 unit test data | ||
if: matrix.build_testing == 'ON' | ||
run: | | ||
pip install -r ${{ github.workspace }}/tdms/tests/requirements.txt | ||
python ${{ github.workspace }}/tdms/tests/unit/benchmark_scripts/create_hdf5_test_file.py | ||
- name: Run TDMS unit tests | ||
if: matrix.build_testing == 'ON' | ||
working-directory: ${{ runner.workspace }}/build | ||
|
@@ -133,6 +147,8 @@ jobs: | |
export OMP_NUM_THREADS=1 | ||
ctest -C ${{ matrix.build_type }} --output-on-failure --extra-verbose | ||
# ------------------------------------------------------------------------------- | ||
# Upload build artefact for system tests | ||
- name: Tar the build result to maintain permissions | ||
# https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
# https://github.com/actions/upload-artifact/issues/38 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-4.91 KB
tdms/tests/unit/benchmark_scripts/unit_test_data/hdf5_test_file.hdf5
Binary file not shown.