Skip to content

✨ (specs.json): add power consumption data for various GPU models to … #8

✨ (specs.json): add power consumption data for various GPU models to …

✨ (specs.json): add power consumption data for various GPU models to … #8

Workflow file for this run

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"