Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 23, 00:30 UTC
feat: add linter and type checks
angrybayblade committed
Jun 17, 2025 at 13:39 UTC
33648a8c80713a3a972bfa296d1ee5ca79f8f11c
1 file changed
+67
.github/workflows/py.check.yaml
new
+67
@@ -0,0 +1,67 @@
1
+name: Checks
2
+on:
3
+ push:
4
+ branches:
5
+ - master
6
+ paths:
7
+ - "python/**/*.py"
8
+ - ".github/workflows/py.checks.yaml"
9
+ pull_request:
10
+ types: [opened, synchronize]
11
+ paths:
12
+ - "python/**/*.py"
13
+ - ".github/workflows/py.checks.yaml"
14
+
15
+jobs:
16
+ common-checks:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Checkout
20
+ uses: actions/checkout@v3
21
+ with:
22
+ fetch-depth: 50
23
+
24
+ - name: Set up Python
25
+ id: setup-python
26
+ uses: actions/setup-python@v4
27
+ with:
28
+ python-version: "3.11"
29
+
30
+ - name: nox cache
31
+ id: nox-cache
32
+ uses: actions/cache@v4
33
+ with:
34
+ path: python/.nox
35
+ key: nox-${{ hashFiles('pyproject.toml') }}-py${{ steps.setup-python.outputs.python-version }}
36
+ restore-keys: |
37
+ nox-
38
+
39
+ - name: Mypy cache
40
+ id: mypy-cache
41
+ uses: actions/cache@v4
42
+ with:
43
+ path: python/.mypy_cache
44
+ key: mypy-${{ hashFiles('pyproject.toml') }}-py${{ steps.setup-python.outputs.python-version }}
45
+ restore-keys: |
46
+ mypy-
47
+
48
+ - name: Ruff cache
49
+ id: ruff-cache
50
+ uses: actions/cache@v4
51
+ with:
52
+ path: python/.ruff_cache
53
+ key: mypy-${{ hashFiles('pyproject.toml') }}-py${{ steps.setup-python.outputs.python-version }}
54
+ restore-keys: |
55
+ ruff-
56
+
57
+ - name: Install deps
58
+ run: |
59
+ cd python/
60
+ pip install uv
61
+ make env
62
+
63
+ - name: Lint and type checks
64
+ shell: bash
65
+ run: |
66
+ cd python/
67
+ uv run nox -s chk