chore(deps-dev): bump cryptography from 46.0.5 to 46.0.7 #108
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 & Package | |
| # This workflow builds and packages the SDK | |
| # Requires approval for fork PRs (uses same approval as tests) | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| env: | |
| PYTHON_VERSION: "3.11" | |
| SDK_DIST_NAME: "sap_cloud_sdk" | |
| jobs: | |
| build: | |
| name: Build SDK | |
| runs-on: ${{ contains(github.server_url, 'github.com') && 'ubuntu-latest' || fromJSON('["self-hosted"]') }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| fetch-depth: 0 | |
| - name: "Install uv" | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: "latest" | |
| enable-cache: true | |
| - name: "Set up Python" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: "Build Packages" | |
| run: uv build | |
| - name: "List Build Artifacts" | |
| run: | | |
| echo "Build artifacts:" | |
| ls -lh dist/ | |
| - name: "Verify Build Artifacts" | |
| run: | | |
| # Check that both wheel and source distribution were created | |
| wheel_count=$(ls -1 dist/*.whl 2>/dev/null | wc -l) | |
| tar_count=$(ls -1 dist/*.tar.gz 2>/dev/null | wc -l) | |
| if [ "$wheel_count" -eq 0 ]; then | |
| echo "ERROR: No wheel file found" | |
| exit 1 | |
| fi | |
| if [ "$tar_count" -eq 0 ]; then | |
| echo "ERROR: No source distribution found" | |
| exit 1 | |
| fi | |
| echo "✓ Build artifacts verified: $wheel_count wheel(s), $tar_count source distribution(s)" | |
| - name: "Upload Build Artifacts" | |
| uses: actions/upload-artifact@v4 | |
| if: contains(github.server_url, 'github.com') | |
| with: | |
| name: ${{ env.SDK_DIST_NAME }} | |
| path: dist/ | |
| retention-days: 7 |