Repository navigation
ci: add CI workflow and refresh the dependency lock #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
dde8c1c
ci: add CI workflow and refresh the dependency lock
willleeney 5c4b29d
Merge main into ci/add-workflow-and-refresh-lock
glebedel 4df56d2
ci: bound the job at 15 minutes and drop the checkout token; README c…
willleeney 740a1dd
fix(deps): lock authlib 1.9.1 and certifi 2026.10.23 past their advis…
willleeney 97e8345
fix(deps): lock truststore 0.10.5 past its CVEs
willleeney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| ci: | ||
| runs-on: ubuntu-latest | ||
| # A hung install or test fails in minutes rather than holding a runner for GitHub's 6-hour default. | ||
| timeout-minutes: 15 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
aikido-autofix[bot] marked this conversation as resolved.
Resolved
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved
|
||
| with: | ||
| # No later step pushes, so the token is not left in the git config for them. | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up uv | ||
| uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| enable-cache: true | ||
|
|
||
| # --locked fails if uv.lock has drifted from pyproject.toml, so a | ||
| # dependency change that was not re-locked cannot merge. | ||
| - name: Install dependencies | ||
| run: uv sync --extra dev --locked | ||
|
|
||
| - name: Lint | ||
| run: uv run ruff check . | ||
|
|
||
| - name: Type check | ||
| run: uv run mypy stackone_adk | ||
|
|
||
| - name: Test | ||
| run: uv run pytest -v | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -262,6 +262,30 @@ ruff check stackone_adk/ tests/ | |
| mypy stackone_adk/ | ||
| ``` | ||
|
|
||
| ### Integration smoke test | ||
|
|
||
| The test suite replaces `StackOneToolSet` with a `MagicMock`, so it passes regardless of how | ||
| the SDK behaves — it cannot catch an SDK regression. The | ||
| [sdk-conformance](https://github.com/StackOneHQ/sdk-conformance) repo carries a smoke script | ||
| that drives the real SDK through the real plugin against a mock StackOne API, asserting the | ||
| plugin exposes exactly the tool catalog the server listed: | ||
|
|
||
| It expects `stackone-adk-plugin` and `stackone-ai-python` checked out beside it. From the | ||
| directory that holds this checkout: | ||
|
|
||
| ```bash | ||
| git clone [email protected]:StackOneHQ/sdk-conformance.git | ||
| git clone [email protected]:StackOneHQ/stackone-ai-python.git | ||
| cd sdk-conformance && pnpm install | ||
| ./scripts/run_smoke.sh adk | ||
|
Comment on lines
+277
to
+280
willleeney marked this conversation as resolved.
Resolved
|
||
| ``` | ||
|
|
||
| To use checkouts elsewhere, set `ADK=` and `SDK_PY=` to their paths. | ||
|
|
||
| This is not wired into CI because `sdk-conformance` is a private repository and this repo has | ||
| no credential configured to clone it. Wiring it up needs a deploy key or PAT secret added | ||
| here first. | ||
|
|
||
| Try an example (requires at least one provider connected in your [StackOne Dashboard](https://app.stackone.com), e.g. Workday): | ||
|
|
||
| ```bash | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.