ci: add job 'Format'
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
parent
e098aee540
commit
b161b69048
|
@ -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'
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
black
|
||||||
pytest
|
pytest
|
||||||
|
|
Loading…
Reference in New Issue