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