Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | name: Checks |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - next |
| 6 | - main |
| 7 | paths: |
| 8 | - 'python/**/*.py' |
| 9 | - 'python/pyproject.toml' |
| 10 | - 'uv.lock' |
| 11 | - '.github/actions/setup-python-uv/action.yml' |
| 12 | - '.github/workflows/py.check.yaml' |
| 13 | - 'mise.toml' |
| 14 | - 'mise.lock' |
| 15 | pull_request: |
| 16 | types: [opened, synchronize] |
| 17 | paths: |
| 18 | - 'python/**/*.py' |
| 19 | - 'python/pyproject.toml' |
| 20 | - 'uv.lock' |
| 21 | - '.github/actions/setup-python-uv/action.yml' |
| 22 | - '.github/workflows/py.check.yaml' |
| 23 | - 'mise.toml' |
| 24 | - 'mise.lock' |
| 25 | |
| 26 | concurrency: |
| 27 | group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} |
| 28 | cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| 29 | |
| 30 | permissions: |
| 31 | contents: read |
| 32 | |
| 33 | jobs: |
| 34 | common-checks: |
| 35 | runs-on: ubuntu-latest |
| 36 | steps: |
| 37 | - name: Checkout |
| 38 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 39 | with: |
| 40 | fetch-depth: 50 |
| 41 | |
| 42 | - name: Setup Python with UV |
| 43 | id: setup-python |
| 44 | uses: ./.github/actions/setup-python-uv |
| 45 | |
| 46 | - name: nox cache |
| 47 | id: nox-cache |
| 48 | uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| 49 | with: |
| 50 | path: python/.nox |
| 51 | key: nox-${{ hashFiles('pyproject.toml') }}-py${{ steps.setup-python.outputs.python-version }} |
| 52 | restore-keys: | |
| 53 | nox- |
| 54 | |
| 55 | - name: Mypy cache |
| 56 | id: mypy-cache |
| 57 | uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| 58 | with: |
| 59 | path: python/.mypy_cache |
| 60 | key: mypy-${{ hashFiles('pyproject.toml') }}-py${{ steps.setup-python.outputs.python-version }} |
| 61 | restore-keys: | |
| 62 | mypy- |
| 63 | |
| 64 | - name: Ruff cache |
| 65 | id: ruff-cache |
| 66 | uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 |
| 67 | with: |
| 68 | path: python/.ruff_cache |
| 69 | key: ruff-${{ hashFiles('pyproject.toml') }}-py${{ steps.setup-python.outputs.python-version }} |
| 70 | restore-keys: | |
| 71 | ruff- |
| 72 | |
| 73 | - name: Install deps |
| 74 | run: | |
| 75 | cd python/ |
| 76 | make env |
| 77 | |
| 78 | - name: Lint and type checks |
| 79 | shell: bash |
| 80 | run: | |
| 81 | cd python/ |
| 82 | uv run nox -s chk |
| 83 | |
| 84 | - name: Example type checks |
| 85 | shell: bash |
| 86 | run: | |
| 87 | cd python/ |
| 88 | uv run nox -s chk_examples |
| 89 | |
| 90 | - name: Type inference tests |
| 91 | shell: bash |
| 92 | run: | |
| 93 | cd python/ |
| 94 | uv run nox -s type_inference |
| 95 | env: |
| 96 | COMPOSIO_API_KEY: ${{ secrets.COMPOSIO_API_KEY }} |