nightly-wheel-build.yml
34 lines
| 1.1 KiB
| text/x-yaml
|
YamlLexer
Matthias Bussonnier
|
r28298 | name: Nightly Wheel builder | ||
Matthias Bussonnier
|
r28294 | on: | ||
workflow_dispatch: | ||||
Matthias Bussonnier
|
r28306 | schedule: | ||
# this cron is ran every Sunday at midnight UTC | ||||
- cron: '0 0 * * 0' | ||||
Matthias Bussonnier
|
r28294 | |||
Matthias Bussonnier
|
r28298 | jobs: | ||
upload_anaconda: | ||||
name: Upload to Anaconda | ||||
runs-on: ubuntu-latest | ||||
Ian Thomas
|
r28693 | # The artifacts cannot be uploaded on PRs, also disable scheduled CI runs on forks | ||
if: github.event_name != 'pull_request' && (github.event_name != 'schedule' || github.repository_owner == 'ipython') | ||||
Matthias Bussonnier
|
r28294 | |||
Matthias Bussonnier
|
r28298 | steps: | ||
- uses: actions/checkout@v3 | ||||
- name: Set up Python | ||||
uses: actions/setup-python@v4 | ||||
with: | ||||
python-version: "3.10" | ||||
cache: pip | ||||
cache-dependency-path: | | ||||
Matthias Koeppe
|
r28635 | pyproject.toml | ||
Matthias Bussonnier
|
r28298 | - name: Try building with Python build | ||
if: runner.os != 'Windows' # setup.py does not support sdist on Windows | ||||
run: | | ||||
Matthias Bussonnier
|
r28302 | python -m pip install build | ||
Matthias Bussonnier
|
r28298 | python -m build | ||
Matthias Bussonnier
|
r28294 | |||
Martin Fleischmann
|
r28299 | - name: Upload wheel | ||
Matthias Bussonnier
|
r28301 | uses: scientific-python/upload-nightly-action@main | ||
Martin Fleischmann
|
r28299 | with: | ||
Matthias Bussonnier
|
r28305 | artifacts_path: dist | ||
Matthias Bussonnier
|
r28304 | anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}} | ||