Skip to content

complete workflow to check sparql queries #65

complete workflow to check sparql queries

complete workflow to check sparql queries #65

name: Check Query Identifiers
on:
push:
branches: [main]
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
format_check:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
python-version:
- "3.9"
runs-on: ${{ matrix.os }}
name: Run Check Query Identifiers
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade uv
uv venv
uv pip install -r requirements.txt
- name: Activate virtualenv
run: |
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Run check_query_identifiers.py
run: python src/scribe_data/check/check_query_identifiers.py
- name: Post-run status
if: failure()
run: echo "Project SPARQL queries check failed. Please fix the reported errors."