diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 83f266a..4bb47bf 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -28,7 +28,8 @@ jobs: steps: - - uses: actions/checkout@v3 + - name: 🧰 Checkout + uses: actions/checkout@v3 with: submodules: recursive @@ -36,6 +37,29 @@ jobs: 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: runs-on: ubuntu-latest name: '📓 Docs' diff --git a/test/requirements.txt b/test/requirements.txt index e079f8a..6e9e9dd 100644 --- a/test/requirements.txt +++ b/test/requirements.txt @@ -1 +1,2 @@ +black pytest