-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Validate | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
name: Validate | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: setup ruff | ||
run: pip install mysoc-validator==0.9.3 | ||
|
||
- name: Check and format | ||
run: | | ||
python -m mysoc_validator popolo validate members/people.json --format | ||
- name: Check format hasn't changed anything | ||
run: | | ||
if [[ -n $(git status --porcelain) ]]; then | ||
echo "Uncommitted changes detected:" | ||
git status --porcelain | ||
exit 1 | ||
else | ||
echo "No file changes detected." | ||
fi |