Update .gitea/workflows/test.yml
Run CI Tests / test (push) Successful in 1m16s

This commit is contained in:
2025-08-06 17:23:59 +02:00
parent fc47eb926d
commit 033ce58ef3
+35
View File
@@ -32,6 +32,41 @@ jobs:
git clone https://gitea.psi.ch/SwissFEL/morbidissimo.git
echo "PYTHONPATH=$PYTHONPATH:$(pwd)/morbidissimo" >> $GITHUB_ENV
# for elog
sudo apt update
sudo apt install -y make gcc wget tar
# wget https://midas.psi.ch/elog/elog-3.1.3.tgz
wget --content-disposition "https://sourceforge.net/projects/elog/files/elog/3.1.3/elog-3.1.3.tgz/download"
tar xvf elog-3.1.3.tgz
cd elog-3.1.3
make
cd ..
mkdir -p elog_instance/logbooks
echo -e "[global]\nport = 8080\nlogdir = logbooks\nallowposting = 1\nallowhtml = 1" > elog_instance/elogd.cfg
./elog-3.1.3/elogd -c elog_instance/elogd.cfg &
sleep 3
mkdir -p ~/.local/bin
cp elog-3.1.3/elogd ~/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo "🔍 Listing ~/.local/bin contents:"
ls -l ~/.local/bin
echo "🔍 PATH at runtime:"
echo "$PATH"
echo "🔍 Is elogd available?"
which elogd || echo "❌ elogd not found"
echo "🔍 Does elogd binary exist where expected?"
test -f ~/.local/bin/elogd && echo "✅ elogd found" || echo "❌ elogd missing"
continue-on-error: true
##################################### TO NOT CHANGE #################################