Skip to content

Commit

Permalink
Add to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair committed Apr 3, 2024
1 parent be72d33 commit 8094f9f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/server_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8094f9f

Please sign in to comment.