-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow that checks the Qleverfiles (#78)
For each of the Qleverfiles in `src/qlever/Qleverfiles`, check whether the main commands (`get-data`, `index`, `start`) work, without executing the command (just do `qlever ... --show`). In particular, this catches if one these Qleverfile cannot be parsed properly.
- Loading branch information
1 parent
a583b10
commit 22eff54
Showing
8 changed files
with
67 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
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
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
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
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
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
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
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