rowhammer-tester/scripts: Fix formatting #1006
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: check-format | |
on: [push, pull_request] | |
jobs: | |
check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout rowhammer-tester | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
submodules: true | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Check format | |
run: | | |
make format | |
test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; } |