From 16cc7fa15a6edd32d838b9f0862e52c0ec822bf8 Mon Sep 17 00:00:00 2001 From: whiterabbit1983 Date: Mon, 15 Apr 2024 08:19:14 +0000 Subject: [PATCH] chore: Add linting github action (#185) --- .github/workflows/lint-and-format.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint-and-format.yml diff --git a/.github/workflows/lint-and-format.yml b/.github/workflows/lint-and-format.yml new file mode 100644 index 000000000..dcac9ec98 --- /dev/null +++ b/.github/workflows/lint-and-format.yml @@ -0,0 +1,19 @@ +name: Lint and format APIs and SDKs +run-name: ${{ github.actor }} is linting and formatting the code +on: [push, pull_request] +jobs: + Lint-And-Format-APIs-And-SDKs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install and configure Poetry + uses: snok/install-poetry@v1 + - name: Lint and format Agents API + run: cd agents-api && poetry install && poetry run poe check + - name: Lint and format Models API + run: cd model-serving && poetry install && poetry run poe check + - name: Lint and format Python SDK + run: cd sdks/python && poetry install && poetry run poe check