Skip to content

chore(deps-dev): bump cryptography from 46.0.5 to 46.0.7 #108

chore(deps-dev): bump cryptography from 46.0.5 to 46.0.7

chore(deps-dev): bump cryptography from 46.0.5 to 46.0.7 #108

Workflow file for this run

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