Skip to content

Commit

Permalink
Fix/optimize workflows (#508)
Browse files Browse the repository at this point in the history
* Update workflow triggers to only run on specific file changes

* make a change on a sparql file

* update workflows to also watch new targets

* update query nouns for test

* update file path

* test file edit

* Revert removal of period to test the workflows

---------

Co-authored-by: Andrew Tavis McAllister <[email protected]>
  • Loading branch information
DeleMike and andrewtavis authored Nov 17, 2024
1 parent f16c21d commit 0cd4cd3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check_project_metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Check Project Metadata

on:
push:
branches: [main]
paths:
- 'src/scribe_data/resources/**/*.json'
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
paths:
- 'src/scribe_data/resources/**/*.json'

jobs:
structure-check:
Expand All @@ -18,6 +23,8 @@ jobs:

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

name: Run Check Project Metadata

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check_query_forms.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Check Query Forms

on:
push:
branches: [main]
paths:
- 'src/scribe_data/wikidata/language_data_extraction/**/*.sparql'
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
paths:
- 'src/scribe_data/wikidata/language_data_extraction/**/*.sparqll'

jobs:
format_check:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/check_query_identifiers.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Check Query Identifiers

on:
push:
branches: [main]
paths:
- 'src/scribe_data/wikidata/language_data_extraction/**/*.sparql'
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
paths:
- 'src/scribe_data/wikidata/language_data_extraction/**/*.sparql'

jobs:
format_check:
Expand Down

0 comments on commit 0cd4cd3

Please sign in to comment.