feat: release monorepo #1154
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] | |
| env: | |
| PYTHON_VERSION: "3.14" | |
| jobs: | |
| pytest: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - . | |
| - packages/lectern | |
| - packages/mecha | |
| - packages/bolt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies | |
| run: uv sync --all-packages --locked --all-extras --dev | |
| - name: Run tests | |
| working-directory: ${{ matrix.package }} | |
| run: uv run pytest -v | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Ruff | |
| uses: astral-sh/ruff-action@v3 | |
| - name: Ruff format | |
| uses: astral-sh/ruff-action@v3 | |
| with: | |
| args: "format --check --diff" | |
| release: | |
| needs: [pytest, ruff] | |
| concurrency: | |
| group: ${{ github.workflow }}-release-${{ github.ref_name }} | |
| cancel-in-progress: false | |
| permissions: | |
| id-token: write | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| - name: Reset workflow sha | |
| run: git reset --hard ${{ github.sha }} | |
| - name: Release beet | |
| id: release-beet | |
| uses: python-semantic-release/python-semantic-release@v10.5.2 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| no_operation_mode: true |