| 1 |
name: Nightly Wheel builder |
| 2 |
on: |
| 3 |
workflow_dispatch: |
| 4 |
schedule: |
| 5 |
# this cron is ran every Sunday at midnight UTC |
| 6 |
- cron: '0 0 * * 0' |
| 7 |
|
| 8 |
jobs: |
| 9 |
upload_anaconda: |
| 10 |
name: Upload to Anaconda |
| 11 |
runs-on: ubuntu-latest |
| 12 |
# The artifacts cannot be uploaded on PRs, also disable scheduled CI runs on forks |
| 13 |
if: github.event_name != 'pull_request' && (github.event_name != 'schedule' || github.repository_owner == 'ipython') |
| 14 |
|
| 15 |
steps: |
| 16 |
- uses: actions/checkout@v6 |
| 17 |
- name: Set up Python |
| 18 |
uses: actions/setup-python@v6 |
| 19 |
with: |
| 20 |
python-version: "3.14" |
| 21 |
cache: pip |
| 22 |
cache-dependency-path: | |
| 23 |
pyproject.toml |
| 24 |
- name: Install uv |
| 25 |
uses: astral-sh/setup-uv@v7 |
| 26 |
- name: Try building with Python build |
| 27 |
if: runner.os != 'Windows' # setup.py does not support sdist on Windows |
| 28 |
run: | |
| 29 |
uv pip install --system build |
| 30 |
python -m build |
| 31 |
|
| 32 |
- name: Upload wheel |
| 33 |
uses: scientific-python/upload-nightly-action@main |
| 34 |
with: |
| 35 |
artifacts_path: dist |
| 36 |
anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}} |