From 5383e8aaba32952f9af2ba348b3b2daca0806139 Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Tue, 19 Dec 2023 10:40:21 -0500 Subject: [PATCH] Add quality check for update-bids Ensure running `poe update-bids` doesn't change any files --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7ffdebc..7ad50c12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,6 +27,15 @@ jobs: # run python style checks - name: Poetry Lock Check run: poetry check --lock + # Check that running update-bids doesn't change any files + - name: update-bids check + run: | + poetry run poe update-bids + git diff-files --quiet || ( + git status + echo 'bids specs out of date, run `poetry run poe update-bids`' + exit 1 + ) - name: Formatting run: poetry run ruff format snakebids --check - name: Linting