Skip to content

update due to deprecation in VTK 9.0 #147

update due to deprecation in VTK 9.0

update due to deprecation in VTK 9.0 #147

Workflow file for this run

name: CemrgApp Tests and Code Coverage
on: [push, pull_request]
jobs:
Test-n-Coverage:
runs-on: ubuntu-20.04
Test-n-Coverage:

Check failure on line 8 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
runs-on: ubuntu-20.04
steps:
- name: Download precompiled Build folder
run: |
wget -q -O Build.zip https://emckclac-my.sharepoint.com/:u:/g/personal/k2143219_kcl_ac_uk/ES5xxspvCyRGoHISDFTLifkBrcTmxNWCX4bzyUT_AkEnAg?download=1
7z x Build.zip
rm Build.zip
sudo mv Build /
- name: Download external libraries
run: |
wget -q -O Externals.zip https://emckclac-my.sharepoint.com/:u:/g/personal/k2143219_kcl_ac_uk/EX8zGabE-ctDoBnde6ntHR0Bx_1wYis_ql26aAzMoedMzg?download=1
7z x Externals.zip
rm Externals.zip
sudo mv Externals /
- name: Install missing packages
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt install doxygen graphviz libfreetype6-dev libglu1-mesa-dev libssl-dev libtiff5-dev libwrap0-dev libxcomposite1 libxcursor1 libxi-dev libxkbcommon-x11-0 libxt-dev mesa-common-dev libtbb2 -y
sudo apt remove --auto-remove icu-devtools libicu-dev -y
- name: Install Qt
run: |
sudo pip3 install --upgrade setuptools
sudo pip3 install aqtinstall
sudo aqt install --outputdir /Qt 5.12.10 linux desktop -m qtcharts qtnetworkauth qtpurchasing qtdatavis3d qtscript qtvirtualkeyboard qtwebengine qtwebglplugin
- name: Clone MITK
run: sudo git clone --branch v2022.10 https://phabricator.mitk.org/source/mitk.git /MITK
- name: Disable tests for CppMicroServices
run: sudo sed -i 's/set(US_BUILD_TESTING ON)/set(US_BUILD_TESTING OFF)/' /MITK/Modules/CMakeLists.txt
- name: Change timestamps of the MITK directory
run: sudo find /MITK/ -exec touch -a -m -d 20210401 {} \;
- name: Clone CemrgApp
uses: actions/checkout@v4
with:
path: CemrgApp
- name: Move CemrgApp to root
run: sudo mv CemrgApp /
- name: Build
working-directory: /Build
env:
CC: gcc
CXX: g++
run: make -j4
- name: Test
working-directory: /Build/MITK-build
env:
QT_PLUGIN_PATH: /Qt/5.12.10/gcc_64/plugins
QT_QPA_PLATFORM: minimal
run: ctest -R Cemrg -C Debug -V
- name: Code Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
root_dir: /CemrgApp/
directory: ${{ github.workspace }}
plugin: gcov