Skip to content

Commit

Permalink
Standardize workflows and fix incorrect language QID
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Oct 20, 2024
1 parent ffb44a9 commit 1af7d91
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/check_project_structure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,33 @@ on:

jobs:
structure-check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
python-version:
- "3.9"

runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Add project root to PYTHONPATH
run: echo "PYTHONPATH=$(pwd)/src" >> $GITHUB_ENV

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run check_project_structure.py
working-directory: ./src/scribe_data/check
run: python check_project_structure.py
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/check_query_identifiers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on:
push:
branches: [main]
pull_request:
branches:
- main
branches: [main]
types: [opened, reopened, synchronize]

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SELECT DISTINCT
?vocativePlural

WHERE {
?lexeme dct:language wd:Q9078 ;
?lexeme dct:language wd:Q33947 ;
wikibase:lexicalCategory wd:Q1084 .

# MARK: Nominative
Expand Down Expand Up @@ -120,4 +120,4 @@ WHERE {
?vocativePluralForm ontolex:representation ?vocativePlural ;
wikibase:grammaticalFeature wd:Q185077, wd:Q146786 .
}
}
}

0 comments on commit 1af7d91

Please sign in to comment.