chore: release v0.2.0 #14
Workflow file for this run
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
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" | |
| - name: Pytest | |
| run: python -m pytest -q | |
| content-guard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: solo-mise | |
| - uses: actions/checkout@v4 | |
| with: | |
| repository: solomonneas/content-guard | |
| ref: v0.1.1 | |
| path: content-guard | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Scan | |
| run: | | |
| cd solo-mise | |
| PYTHONPATH=../content-guard/src python -m content_guard scan . \ | |
| --policy ../content-guard/policies/public-repo.json | |
| install-from-source: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| profile: [repo, workspace, openclaw, hermes, generic, publisher] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: pipx install | |
| run: | | |
| python -m pip install --upgrade pip pipx | |
| pipx install . | |
| solo-mise --version | |
| - name: Init + doctor | |
| run: | | |
| target="/tmp/ci-smoke-${{ matrix.profile }}" | |
| rm -rf "$target" | |
| mkdir -p "$target" | |
| # The 'repo' profile installs a pre-push hook; that wants a git repo. | |
| # Other profiles do not require one but it is harmless. | |
| git init -q -b main "$target" | |
| solo-mise init --target "$target" --profile ${{ matrix.profile }} | |
| # Doctor is harness-aware. Map the profile to the right --harness value. | |
| case "${{ matrix.profile }}" in | |
| openclaw) harness=openclaw ;; | |
| hermes) harness=hermes ;; | |
| *) harness=generic ;; | |
| esac | |
| solo-mise doctor --target "$target" --harness "$harness" |