Mb/ifu missing #105
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
name: Run tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# Run every day at 2:00 UTC | |
- cron: "0 2 * * *" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo ./toolbox/install_dependencies_ubuntu.sh | |
# python3 -m venv metispipe | |
# . metispipe/bin/activate | |
export PYCPL_RECIPE_DIR="$(pwd)/metisp/pyrecipes/" | |
./toolbox/install_edps.sh | |
./toolbox/create_config.sh | |
- name: Fetch test data | |
run: | | |
git clone https://github.com/AstarVienna/METIS_Pipeline_Test_Data.git | |
- name: Run pytest tests | |
run: | | |
set +x | |
# . metispipe/bin/activate | |
export PYESOREX_PLUGIN_DIR="$(pwd)/metisp/pyrecipes/" | |
export PYCPL_RECIPE_DIR="$(pwd)/metisp/pyrecipes/" | |
export PYTHONPATH="$(pwd)/metisp/pymetis/src/" | |
export SOF_DATA="$(pwd)/METIS_Pipeline_Test_Data/metis_sim_small_1/data" | |
export SOF_DIR="$(pwd)/METIS_Pipeline_Test_Data/metis_sim_small_1/sof" | |
export PYESOREX_OUTPUT_DIR="$SOF_DATA" | |
python -m pytest -s | |
- name: Run pyESOREX test | |
run: | | |
set +x | |
# . metispipe/bin/activate | |
export PYESOREX_PLUGIN_DIR="$(pwd)/metisp/pyrecipes/" | |
export PYCPL_RECIPE_DIR="$(pwd)/metisp/pyrecipes/" | |
export PYTHONPATH="$(pwd)/metisp/pymetis/src/" | |
export SOF_DATA="$(pwd)/METIS_Pipeline_Test_Data/metis_sim_small_1/data" | |
export SOF_DIR="$(pwd)/METIS_Pipeline_Test_Data/metis_sim_small_1/sof" | |
export PYESOREX_OUTPUT_DIR="$SOF_DATA" | |
pyesorex --recipes | |
cat "${SOF_DIR}/metis_det_lingain.lm.sof" | |
pyesorex metis_det_lingain "${SOF_DIR}/metis_det_lingain.lm.sof" | |
cat "${SOF_DIR}/metis_det_dark.lm.sof" | |
pyesorex metis_det_dark "${SOF_DIR}/metis_det_dark.lm.sof" | |
cat "${SOF_DIR}/metis_lm_img_flat.lamp.sof" | |
pyesorex metis_lm_img_flat "${SOF_DIR}/metis_lm_img_flat.lamp.sof" | |
cat "${SOF_DIR}/metis_lm_img_basic_reduce.sof" | |
# TODO: This recipe name is incorrect and should be renamed | |
pyesorex metis_lm_img_basic_reduce "${SOF_DIR}/metis_lm_img_basic_reduce.sof" | |
- name: Run EDPS | |
run: | | |
# . metispipe/bin/activate | |
export PYESOREX_PLUGIN_DIR="$(pwd)/metisp/pyrecipes/" | |
export PYCPL_RECIPE_DIR="$(pwd)/metisp/pyrecipes/" | |
export PYTHONPATH="$(pwd)/metisp/pymetis/src/" | |
export SOF_DATA="$(pwd)/METIS_Pipeline_Test_Data/metis_sim_small_1/data" | |
export SOF_DIR="$(pwd)/METIS_Pipeline_Test_Data/metis_sim_small_1/sof" | |
edps -lw | |
edps -w metis.metis_lm_img_wkf -i $SOF_DATA -c | |
edps -w metis.metis_lm_img_wkf -i $SOF_DATA -t metis_lm_img_basic_reduce | tee edps.stdout.txt | |
! grep "'FAILED'" edps.stdout.txt |