From 8094f9feb2182da06fba40ffef748246d0133269 Mon Sep 17 00:00:00 2001 From: Travis Addair Date: Wed, 3 Apr 2024 11:19:21 -0700 Subject: [PATCH] Add to CI --- .github/workflows/server_tests.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/server_tests.yaml b/.github/workflows/server_tests.yaml index 78498bc01..431d479b3 100644 --- a/.github/workflows/server_tests.yaml +++ b/.github/workflows/server_tests.yaml @@ -25,19 +25,11 @@ jobs: uses: actions/setup-python@v1 with: python-version: "3.10" - - name: Get changed files - id: changed_files - run: | - echo "files=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -E '*.py$' | tr '\n' ' ')" - echo "files=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep -E '*.py$' | tr '\n' ' ')" >> $GITHUB_OUTPUT - # TODO(travis): reenable after running this on the entire codebase - # - name: Run flake8 on changed files - # if: steps.changed_files.outputs.files != '' - # run: | - # pip install flake8 - # echo running linter on: ${{ steps.changed_files.outputs.files }} - # flake8 ${{ steps.changed_files.outputs.files }} + - name: Run black fmt + run: | + pip install black + python -m black --check server/lorax_server - name: Install Protoc uses: arduino/setup-protoc@v1