-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (45 loc) · 1.35 KB
/
qleverfiles-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Qleverfiles check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
merge_group:
jobs:
qleverfiles-check:
runs-on: ${{matrix.os}}
strategy:
fail-fast: true
matrix:
os: [ubuntu-24.04]
steps:
- name: Checkout the repository for the qlever script
uses: actions/checkout@v3
with:
path: qlever-control
- name: Install the script locally
working-directory: ${{github.workspace}}/qlever-control
run: |
# python3 -m pip install --upgrade pip setuptools wheel
# python3 --version
# pip3 --version
# pip3 show setuptools wheel
pip install -e .
- name: Check that all the files in `src/qlever/Qleverfiles` parse.
working-directory: ${{github.workspace}}/qlever-control
run: |
for QLEVERFILE in src/qlever/Qleverfiles/Qleverfile.*; do
echo
echo -e "\x1b[1;34mChecking ${QLEVERFILE}\x1b[0m"
echo
NAME=${QLEVERFILE##*.}
rm -f Qleverfile
qlever setup-config $NAME
qlever get-data --show
qlever index --show
qlever start --show
qlever ui --show
echo
echo -e "\x1b[34mAll checks passed for ${QLEVERFILE}\x1b[0m"
echo
done