chore(release): v0.17.0 #1016
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: build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v6 | |
| - uses: ./.github/actions/prepare | |
| - name: Build | |
| run: uv build | |
| - name: Check package | |
| run: | | |
| uv run twine check --strict dist/* | |
| uv run check-wheel-contents dist/ | |
| - name: Upload dist | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| smoke: | |
| name: "smoke (py${{ matrix.python-version }})" | |
| needs: build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| steps: | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: Download dist | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Install wheel | |
| run: | | |
| uv venv --python ${{ matrix.python-version }} | |
| uv pip install dist/*.whl | |
| - name: Verify CLI | |
| run: | | |
| source .venv/bin/activate | |
| context-use --version | |
| context-use --help | |
| build-passed: | |
| name: build:required | |
| if: always() | |
| needs: [build, smoke] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check all jobs passed | |
| run: | | |
| if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" || "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then | |
| echo "Some jobs failed or were cancelled" | |
| exit 1 | |
| fi | |
| echo "All CI jobs passed" |