parser: Allow double quoted identifiers #729
Workflow file for this run
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: checks | |
on: | |
- push | |
- pull_request | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- run: python -m pip install ruff | |
- run: ruff check beanquery/ | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- run: pip install -r requirements.txt coverage | |
- name: Check coverage by module | |
# Check that each module is exaustively tested by the dedicated units tests. | |
run: | | |
set -x | |
echo '{ | |
"beanquery/parser/*": "beanquery/parser_test.py", | |
"beanquery/query_render.py": "beanquery/query_render_test.py" | |
}' | jq -rc 'to_entries | .[] | (.key + "=" + .value)' | while IFS='=' read src test | |
do | |
python -m coverage run --branch --include "$src" --omit beanquery/parser/parser.py -m unittest "$test" | |
python -m coverage report --fail-under=100 -m | |
python -m coverage erase | |
done | |
- name: Check overall coverage | |
run: | | |
python -m coverage run --branch -m unittest discover -t . -s beanquery/ -p \*_test.py | |
python -m coverage report --sort cover | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- run: pip install -r requirements.txt wheel build | |
- run: python -m build --no-isolation | |
- run: python -m pip install dist/beanquery-*.whl |