Skip to content

Commit ef94d91

Browse files
authored
Merge pull request #75 from reflectivity/fix_bornagain
Fix constantly failing BornAgain tests
2 parents 144f26c + 3421b4e commit ef94d91

File tree

1 file changed

+5
-54
lines changed

1 file changed

+5
-54
lines changed

.github/workflows/validate_bornagain.yml

Lines changed: 5 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -25,70 +25,21 @@ jobs:
2525
2626
sudo apt-get install -y --no-install-recommends python3-dev python3-pip
2727
28-
sudo apt-get install -y --no-install-recommends build-essential \
29-
gfortran cmake \
30-
libgsl-dev libboost-all-dev libfftw3-dev libtiff5-dev libcerf-dev libeigen3-dev \
31-
qtbase5-dev libqt5designercomponents5 qttools5-dev libqt5svg5-dev libqt5opengl5-dev libx11-xcb1
32-
33-
sudo apt-get install -y --no-install-recommends qt6-base-dev libqt6svg6-dev
34-
35-
- name: ccache
36-
uses: hendrikmuhs/ccache-action@v1.2
37-
38-
- name: permanently amend PATH
39-
run: |
40-
echo "PATH=/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" >> $GITHUB_ENV
41-
42-
- name: install own dependency LibHeinz
43-
run: |
44-
git clone https://jugit.fz-juelich.de/mlz/libheinz.git
45-
pushd libheinz
46-
mkdir build && pushd build
47-
cmake ..
48-
make
49-
sudo make install
50-
51-
- name: install own dependency libcerf
52-
run: |
53-
git clone https://jugit.fz-juelich.de/mlz/libcerf.git
54-
pushd libcerf
55-
mkdir build && pushd build
56-
cmake ..
57-
make
58-
sudo make install
59-
60-
- name: install own dependency LibFormFactor
61-
run: |
62-
git clone https://jugit.fz-juelich.de/mlz/libformfactor.git
63-
pushd libformfactor
64-
mkdir build && pushd build
65-
cmake ..
66-
make
67-
sudo make install
68-
6928
- name: Install Python packages
7029
run: |
7130
python3 -m pip install --upgrade pip
7231
python3 -m pip install cython pytest build wheel setuptools
7332
python3 -m pip install numpy matplotlib auditwheel
7433
75-
- name: Build BornAgain
34+
- name: Install BornAgain
7635
run: |
77-
git clone --depth 1 --single-branch --branch main https://jugit.fz-juelich.de/mlz/bornagain.git
78-
pushd bornagain
79-
git submodule update
80-
mkdir build && pushd build
81-
82-
cmake -DBA_PY_PACKAGE=ON -DBA_GUI=OFF -DCMAKE_INSTALL_PREFIX=/usr/local ../
83-
make -j4
84-
pushd PythonPackage/*
85-
python3 -m pip install .
36+
python3 -m pip install bornagain
8637
8738
- name: Validate
8839
run: |
8940
# source /usr/local/bin/thisbornagain.sh
90-
ls -al /usr/local/bin
91-
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
92-
printenv
41+
# ls -al /usr/local/bin
42+
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
43+
# printenv
9344
# run validation via pytest (for Python packages)
9445
python3 -m pytest validation/scripts/test_bornagain.py

0 commit comments

Comments
 (0)