Skip to content

Remove spurious -

Remove spurious - #58

name: End-to-end test on MacOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
jobs:
end-to-end-test-macos:
runs-on: ${{matrix.os}}
strategy:
fail-fast: true
matrix:
os: [macos-12]
steps:
- name: Checkout script and install dependencies
uses: actions/checkout@v3
with:
path: qlever-control
run: |
brew install llvm@16
brew install conan@2
# brew install boost icu4c openssl zstd
brew install unzip expect
pip3 install flake8 psutil termcolor
# brew install --cask docker
- name: Cache for conan
uses: actions/cache@v3
env:
cache-name: cache-conan-modules
with:
path: ~/.conan2
key: ${{runner.os}}-build-${{env.cache-name}}-${{hashFiles('conanfile.txt')}}
- name: Download QLever binaries and install dependencies
run: |
git clone https://github.com/ad-freiburg/qlever.git qlever-code
mkdir -p qlever-code/build && cd $_
conan install .. -pr:b=../conanprofiles/clang-16-macos -pr:h=../conanprofiles/clang-16-macos -of=. --build=missing
cd ../..
mkdir qlever-binaries && cd $_
wget -q https://ad-research.cs.uni-freiburg.de/downloads/qlever/macos-12/ServerMain
wget -q https://ad-research.cs.uni-freiburg.de/downloads/qlever/macos-12/IndexBuilderMain
chmod 755 ServerMain IndexBuilderMain
- name: Format and compile check
working-directory: ${{github.workspace}}/qlever-control
run: |
flake8 qlever
python3 -m py_compile qlever
- name: Test actions for olympics dataset, without Docker
working-directory: ${{github.workspace}}/qlever-indices/olympics
run: |
export PATH="$PATH:$(pwd)/qlever-control:$(pwd)/qlever-binaries"
source qlever-code/build/conanrun.sh
ServerMain --help > /dev/null
IndexBuilderMain --help > /dev/null
unbuffer qlever setup-config olympics
unbuffer qlever get-data docker.USE_DOCKER=false index index-stats
unbuffer qlever docker.USE_DOCKER=false start status stop start stop status start status stop
ls -lh