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 21, 12:15 UTC
ci: run the TypeSafe provider tests and watch the shared question corpus
jkomyno committed
Sep 17, 2026 at 16:55 UTC
23ee594a5e288c1d83a94652a5854bc6cfac56c6
2 files changed
+19
.github/workflows/py.test.yml
+15
@@ -14,6 +14,8 @@ on:
14
- 'python/pyproject.toml'
15
- 'uv.lock'
16
- 'python/requirements*.txt'
17
+ # The TypeSafe question corpus is shared byte-for-byte with the TypeScript provider.
18
+ - 'ts/packages/providers/typesafe/test/fixtures/question-corpus.json'
19
pull_request:
20
branches: [master, next]
21
paths:
@@ -27,6 +29,8 @@ on:
29
- 'python/pyproject.toml'
30
- 'uv.lock'
31
- 'python/requirements*.txt'
32
+ # The TypeSafe question corpus is shared byte-for-byte with the TypeScript provider.
33
+ - 'ts/packages/providers/typesafe/test/fixtures/question-corpus.json'
34
35
concurrency:
36
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
@@ -111,6 +115,17 @@ jobs:
115
tests/test_provider.py::TestAgenticSkipDefaultsParity::test_autogen_signature_preserves_default \
116
-v --tb=short
117
118
+ - name: Test TypeSafe Provider
119
+ run: |
120
+ cd python/
121
+ # The main environment does not install this provider, and its tests use
122
+ # pytest.importorskip, so they would skip silently there.
123
+ uv venv typesafe-env --python ${{ matrix.python-version }}
124
+ source typesafe-env/bin/activate
125
+ uv pip install -e . -e providers/typesafe hypothesis pytest pytest-mock
126
+ python -c "import composio_typesafe; print('✓ TypeSafe provider import successful')"
127
+ python -m pytest tests/test_typesafe_provider.py -v --tb=short
128
+
129
- name: Run Unit Tests
130
run: |
131
cd python/
.github/workflows/ts.test.yml
+4
@@ -16,6 +16,8 @@ on:
16
- 'pnpm-lock.yaml'
17
- 'test/release-workflow.test.ts'
18
- 'test/provider-compatibility.test.ts'
19
+ # The TypeSafe question corpus is shared byte-for-byte with the Python provider.
20
+ - 'python/tests/fixtures/typesafe_question_corpus.json'
21
- 'turbo.jsonc'
22
pull_request:
23
branches: [master, next]
@@ -32,6 +34,8 @@ on:
34
- 'pnpm-lock.yaml'
35
- 'test/release-workflow.test.ts'
36
- 'test/provider-compatibility.test.ts'
37
+ # The TypeSafe question corpus is shared byte-for-byte with the Python provider.
38
+ - 'python/tests/fixtures/typesafe_question_corpus.json'
39
- 'turbo.jsonc'
40
41
concurrency: