feat: release monorepo #1157
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: [monorepo] | |
| pull_request: | |
| branches: [monorepo] | |
| jobs: | |
| main: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| fetch-depth: 0 | |
| - name: Reset workflow sha | |
| run: git reset --hard ${{ github.sha }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies | |
| run: uv sync --all-packages --locked --all-extras --dev | |
| - name: Tests | |
| run: | | |
| status=0 | |
| for d in . packages/lectern packages/mecha packages/bolt; do | |
| if ! (uv run --directory "$d" pytest -v); then | |
| status=1 | |
| fi | |
| done | |
| exit $status | |
| - name: Ruff | |
| run: uv run ruff check | |
| - name: Ruff format | |
| run: uv run ruff format --check --diff | |
| - name: Release | |
| run: uv run semantic-release -v --noop version |