From b161b690482a897e313cf1ef1ab3e0586a530d9b Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Mon, 15 Aug 2022 04:47:52 +0200 Subject: [PATCH] ci: add job 'Format' Signed-off-by: Unai Martinez-Corral --- .github/workflows/Pipeline.yml | 26 +++++++++++++++++++++++++- test/requirements.txt | 1 + 2 files changed, 26 insertions(+), 1 deletion(-) 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