diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 82b85246..28cdf9c1 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -78,6 +78,12 @@ jobs: with: enable-cache: true + - name: Set the dependency resolution cutoff + # PyPI uploads a release's wheels one platform at a time, so resolving + # mid-upload can select a version whose wheel for this interpreter does + # not exist yet and fail the install. Skip the last hour of releases. + run: echo "UV_EXCLUDE_NEWER=$(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV" + - name: Generate Baseline env: TARGET_BRANCH: ${{ github.base_ref || github.ref_name }} @@ -149,6 +155,12 @@ jobs: with: enable-cache: true + - name: Set the dependency resolution cutoff + # PyPI uploads a release's wheels one platform at a time, so resolving + # mid-upload can select a version whose wheel for this interpreter does + # not exist yet and fail the install. Skip the last hour of releases. + run: echo "UV_EXCLUDE_NEWER=$(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV" + - name: Install dependencies run: | uv venv .venv @@ -193,6 +205,12 @@ jobs: with: enable-cache: true + - name: Set the dependency resolution cutoff + # PyPI uploads a release's wheels one platform at a time, so resolving + # mid-upload can select a version whose wheel for this interpreter does + # not exist yet and fail the install. Skip the last hour of releases. + run: echo "UV_EXCLUDE_NEWER=$(date -u -d '1 hour ago' +%Y-%m-%dT%H:%M:%SZ)" >> "$GITHUB_ENV" + - name: Install dependencies run: | uv venv .venv