Skip to content

Python-based version of the QLever script #14

Python-based version of the QLever script

Python-based version of the QLever script #14

Workflow file for this run

name: End-to-end test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
jobs:
end-to-end-test:
strategy:
fail-fast: true
# matrix:
# os: [ubuntu-22.04, macos-12]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install required tools and Python packages
run: |
sudo apt update
sudo apt install wget unzip flake8
pip3 install psutil
# Install docker, see See https://docs.docker.com/engine/install/ubuntu/
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
sudo apt remove docker docker-engine docker.io containerd runc
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
sudo apt-cache policy docker-ce
sudo apt install docker-ce containerd.io
#
docker pull adfreiburg/qlever
docker run adfreiburg/qlever --help | head
- name: Format and compile check
run: |
flake8 qlever.py
python3 -m py_compile qlever.py
- name: Set up test directory
working-directory: ${{github.workspace}}
run: |
mkdir olympics
cp -a Qleverfile.ini olympics
- name: Test actions for olympics dataset
working-directory: ${{github.workspace}}/olympics
run: |
../qlever.py get-data
ls -lh
docker run -it -v $(pwd):/index -w /index --entrypoint bash adfreiburg/qlever -c 'cat olympics.nt | IndexBuilderMain -F ttl -f - -i olympics'
ls -lh
# ../qlever.py docker.USE_DOCKER=true index
../qlever.py status
# ../qlever.py get-data docker.USE_DOCKER=true index start status stop status