Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- name: Run model checks
if: steps.find_files.outputs.count != '0'
run: |
set -e
while read -r f; do
[ -z "$f" ] && continue
echo "Checking model: $f"
Expand Down
4 changes: 3 additions & 1 deletion CI/post_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def run_and_filter(cmd:str):
except Exception:
pass

return proc.returncode

def main(argv=None):
p = argparse.ArgumentParser(prog='post_filter', description='Run command and filter its output')
p.add_argument('cmd', nargs=argparse.REMAINDER, help='Command to run (use -- before the command)')
Expand All @@ -63,7 +65,7 @@ def main(argv=None):
if cmd and cmd[0] == '--':
cmd = cmd[1:]

run_and_filter(cmd)
return run_and_filter(cmd)

if __name__ == '__main__':
sys.exit(main())
Loading