Many fixes and improvements + workflows pass again -> version 0.5.0 #153
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: 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 the QLever script | |
uses: actions/checkout@v3 | |
with: | |
path: qlever-control | |
- name: Install locally + install dependencies needed for testing | |
working-directory: ${{github.workspace}}/qlever-control | |
run: | | |
python3 -m pip install --upgrade pip setuptools wheel | |
python3 --version | |
pip3 --version | |
pip3 show setuptools wheel | |
pip3 install -e . | |
brew install llvm@16 | |
brew install conan@2 | |
brew install unzip expect | |
pip3 install flake8 | |
- name: Cache for conan (to make the next step much faster) | |
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: Check that everything is found and runs | |
run: | | |
pwd && ls -lh | |
export PATH="$PATH:$(pwd)/qlever-control:$(pwd)/qlever-binaries" | |
source qlever-code/build/conanrun.sh | |
ServerMain --help > /dev/null | |
IndexBuilderMain --help > /dev/null | |
qlever | |
qlever help | |
- name: Test actions for olympics dataset, without Docker | |
timeout-minutes: 1 | |
run: | | |
export PATH="$PATH:$(pwd)/qlever-control:$(pwd)/qlever-binaries" | |
export QLEVER_ARGCOMPLETE_ENABLED=1 | |
mkdir -p ${{github.workspace}}/qlever-indices/olympics.1 && cd $_ | |
unbuffer qlever setup-config olympics | |
unbuffer qlever get-data | |
unbuffer qlever index --system native | |
unbuffer qlever start --system native | |
unbuffer qlever status | |
unbuffer qlever stop | |
ls -lh |