From b391ad12ae5bfaf7c3e410bc7fd4ff23288798c3 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 31 Mar 2024 01:47:53 -0700 Subject: [PATCH] refac: format backend ci --- .github/workflows/format-backend.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/format-backend.yaml b/.github/workflows/format-backend.yaml index 8402c588a..05105b955 100644 --- a/.github/workflows/format-backend.yaml +++ b/.github/workflows/format-backend.yaml @@ -1,29 +1,34 @@ name: Python CI + on: push: branches: ['main'] pull_request: + jobs: build: name: 'Format Backend' - env: - PUBLIC_API_BASE_URL: '' runs-on: ubuntu-latest + strategy: matrix: - node-version: - - latest + python-version: [3.11] + steps: - uses: actions/checkout@v4 - - name: Use Python - uses: actions/setup-python@v4 - - name: Use Bun - uses: oven-sh/setup-bun@v1 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install black + - name: Format backend - run: bun run format:backend + run: black . --exclude "/venv/" + - name: Check for changes after format run: git diff --exit-code