ci: add job 'Format'

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-08-15 04:47:52 +02:00
parent e098aee540
commit b161b69048
2 changed files with 26 additions and 1 deletions

View File

@ -28,7 +28,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - name: 🧰 Checkout
uses: actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
@ -36,6 +37,29 @@ jobs:
uses: SymbiFlow/actions/checks@main uses: SymbiFlow/actions/checks@main
Format:
name: '🐍 Format'
runs-on: ubuntu-latest
steps:
- name: 🧰 Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: 🐍 Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: 🔧 Install dependencies
run: python -m pip install -r test/requirements.txt
- name: 🚦 Check if Python sources follow code formatting standards
run: python -m black --check f4pga
Docs: Docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: '📓 Docs' name: '📓 Docs'

View File

@ -1 +1,2 @@
black
pytest pytest