Merge pull request #5 from EverMind-AI/sdk/v1.0.0-rc1 #16
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
| # PR / push checks for the generated SDK: it installs, imports with the expected | |
| # config, and builds. Runs on the factory's proposal PRs so a broken generation | |
| # is caught before merge (and therefore before release). Skips cleanly on a bare | |
| # major branch that has no SDK yet (before the first proposal lands). | |
| name: ci | |
| on: | |
| pull_request: # covers proposal PRs (sdk/* → vN) | |
| push: | |
| branches: ["v*"] # post-merge validation on each major line (v2, v3, …) | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Detect package | |
| id: detect | |
| run: | | |
| if [ -f pyproject.toml ]; then | |
| echo "has_pkg=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "has_pkg=false" >> "$GITHUB_OUTPUT" | |
| echo "No SDK on this branch yet — skipping build (bootstrap branch)." | |
| fi | |
| - uses: actions/setup-python@v6 | |
| if: steps.detect.outputs.has_pkg == 'true' | |
| with: | |
| python-version: "3.14" | |
| - name: Install | |
| if: steps.detect.outputs.has_pkg == 'true' | |
| run: pip install . | |
| - name: Import + config smoke | |
| if: steps.detect.outputs.has_pkg == 'true' | |
| run: | | |
| python - <<'PY' | |
| from everos_cloud import ApiClient, Configuration, MemoryApi | |
| cfg = Configuration(access_token="sk-test") | |
| assert cfg.host == "https://api.evermind.ai", cfg.host | |
| assert cfg.auth_settings()["BearerAuth"]["value"] == "Bearer sk-test" | |
| MemoryApi(ApiClient(cfg)) | |
| for m in ("add_memory", "search_memory", "get_memory", "delete_memory", "edit_profile"): | |
| assert hasattr(MemoryApi, m), m | |
| print("import + config OK") | |
| PY | |
| - name: Build sdist + wheel | |
| if: steps.detect.outputs.has_pkg == 'true' | |
| run: | | |
| python -m pip install --upgrade build | |
| python -m build |