Files
pybind11/.github/workflows/nightlies.yml
Henry Schreiner 288913638b ci: bump setup-uv to maintained tag scheme (#6035)
The old vX tags have been dropped to (force) (usually) better security practices. Dependabot will not update, however, leaving this v7 tag forever. Manually updating now.

See https://github.com/astral-sh/setup-uv/issues/830

Committed via https://github.com/asottile/all-repos
2026-04-11 22:45:57 -07:00

60 lines
1.5 KiB
YAML

name: Upload nightly wheels to Anaconda Cloud
on:
# Run daily at 2:34 UTC to upload nightly wheels to Anaconda Cloud
schedule:
- cron: "34 2 * * *"
# Run on demand with workflow dispatch
workflow_dispatch:
permissions:
actions: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheel:
name: Build and upload wheel
if: github.repository_owner == 'pybind'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v8.0.0
- name: Build SDist and wheels
run: |
uv tool install nox
nox -s build
nox -s build_global
- uses: actions/upload-artifact@v7
with:
name: Packages
path: dist/*
upload_nightly_wheels:
name: Upload nightly wheels to Anaconda Cloud
if: github.repository_owner == 'pybind'
needs: [build_wheel]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v8
with:
name: Packages
path: dist
- name: List wheel to be deployed
run: ls -lha dist/*.whl
- name: Upload wheel to Anaconda Cloud as nightly
uses: scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf # 0.6.3
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}