Skip to content

Bump tqdm from 4.19.5 to 4.66.3 in /scripts #188

Bump tqdm from 4.19.5 to 4.66.3 in /scripts

Bump tqdm from 4.19.5 to 4.66.3 in /scripts #188

Workflow file for this run

name: j-pet-continuous-integration-tests
on: [push, pull_request]
jobs:
build_and_run_all_tests_on_ubuntu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: system update
run: |
sudo apt-get -qq update
sudo apt-get install -y git libboost-all-dev libtbb-dev cmake libfftw3-3 libfftw3-dev sshpass
- name: set branch name
run: |
echo "GITHUB_REF=${GITHUB_REF}"
GITHUB_BRANCH=${GITHUB_REF##*\/}
if [ "${GITHUB_BRANCH}" = "master" ]; then echo "BRANCH=master" | tee ${GITHUB_ENV};
else echo "BRANCH=develop" | tee ${GITHUB_ENV};
fi
- name: download ROOT (for ubuntu 22.04)
run: |
wget https://root.cern/download/root_v6.26.02.Linux-ubuntu22-x86_64-gcc11.2.tar.gz
tar xzf root_v6.26.02.Linux-ubuntu22-x86_64-gcc11.2.tar.gz
if: matrix.os == 'ubuntu-22.04'
- name: download ROOT (for ubuntu 20.04)
run: |
wget https://root.cern/download/root_v6.24.02.Linux-ubuntu20-x86_64-gcc9.3.tar.gz
tar xzf root_v6.24.02.Linux-ubuntu20-x86_64-gcc9.3.tar.gz
if: matrix.os == 'ubuntu-20.04'
- name: download ROOT (for ubuntu-18.04)
run: |
wget http://sphinx.if.uj.edu.pl/framework/root-6-20-06-ubuntu18-jpet.tar.gz
tar xzf root-6-20-06-ubuntu18-jpet.tar.gz
if: matrix.os == 'ubuntu-18.04'
- name: build unpacker
run: |
source root/bin/thisroot.sh
git clone https://github.com/JPETTomography/Unpacker2.git --single-branch --branch ${BRANCH} unpacker
mkdir -p unpacker/build
cd unpacker/build
cmake ..
cmake --build . -j$(nproc)
sudo make install
cd ../..
- name: build j-pet framework
run: |
source root/bin/thisroot.sh
source unpacker/build/bin/thisunpacker.sh
rm -rf j-pet-framework || true
git clone --single-branch --branch ${BRANCH} https://github.com/JPETTomography/j-pet-framework.git
mkdir -p j-pet-framework/build
cd j-pet-framework/build
cmake ..
cmake --build . -j $(nproc)
cd ../..
- name: build framework examples
run: |
source root/bin/thisroot.sh
source unpacker/build/bin/thisunpacker.sh
source j-pet-framework/build/bin/thisframework.sh
mkdir build
cd build
cmake ..
make -j $(nproc)
make tests_largebarrel
make tests_imagereconstruction
make tests_calibProg
- name: run lifetime calibration test
run: |
source root/bin/thisroot.sh
source unpacker/build/bin/thisunpacker.sh
cd build/TimeCalibration_lifetime
ctest -j6 -C Debug -T test --output-on-failure
- name: run image reconstruction test
run: |
source root/bin/thisroot.sh
source unpacker/build/bin/thisunpacker.sh
cd build/ImageReconstruction
ctest -j6 -C Debug -T test --output-on-failure
- name: run large barrel test
run: |
source root/bin/thisroot.sh
cd build/LargeBarrelAnalysis
ctest -j6 -C Debug -T test --output-on-failure
wget http://sphinx.if.uj.edu.pl/~alek/framework_integration_tests/dabc_17025151847.hld
wget http://sphinx.if.uj.edu.pl/~alek/framework_integration_tests/setupRun3.json
./LargeBarrelAnalysis.x -t hld -f dabc_17025151847.hld -l setupRun3.json -i 3 -r 0 100
mkdir outdir
./LargeBarrelAnalysis.x -t hld -f dabc_17025151847.hld -l setupRun3.json -i 3 -r 0 100 -o outdir
./LargeBarrelAnalysis.x -t root -f dabc_17025151847.hld.root -l setupRun3.json -i 3 -r 0 100
sed -i 's/manager.useTask("TimeWindowCreator", "hld", "tslot.calib");//' ../../LargeBarrelAnalysis/main.cpp
make LargeBarrelAnalysis.x
./LargeBarrelAnalysis.x -t root -f dabc_17025151847.tslot.calib.root -r 0 100