diff --git a/.github/workflows/lint-and-format.yml b/.github/workflows/lint-and-format.yml new file mode 100644 index 000000000..3d4ced9b2 --- /dev/null +++ b/.github/workflows/lint-and-format.yml @@ -0,0 +1,16 @@ +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 + - 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 + - name: Lint and format NodeJS SDK + run: cd sdks/ts && npm i && npm run test