✨ (specs.json): add power consumption data for various GPU models to … #8
Workflow file for this run
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
name: Lint JSON Files | |
on: | |
pull_request: | |
paths: | |
- 'data/*.json' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Run JSON Linter | |
run: | | |
ls data/*.json | xargs -Ixx bash -c "echo JSON linting xx 1>&2; cat xx | python3 -mjson.tool > /dev/null || exit 255" |