Skip to content

Commit

Permalink
Add configuration for nightly wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Dec 8, 2023
1 parent 14825b9 commit 5bf9b72
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on:
schedule:
# run every day at 4am UTC
- cron: '0 4 * * *'
workflow_dispatch:
push:
pull_request:
workflow_dispatch:
Expand Down Expand Up @@ -45,5 +49,16 @@ jobs:
- cp*-macosx_x86_64
- cp*-macosx_arm64
- cp*-win_amd64
# Developer wheels (use Numpy dev to build)
upload_to_anaconda: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') }}
anaconda_user: astropy
anaconda_package: reproject
anaconda_keep_n_latest: 10
env: |
CIBW_BEFORE_BUILD: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && 'pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple setuptools setuptools_scm numpy>=0.0dev0 extension-helpers') || '' }}'
CIBW_BUILD_FRONTEND: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && 'pip; args: --no-build-isolation') || 'build' }}'
secrets:
pypi_token: ${{ secrets.pypi_token }}
anaconda_token: ${{ secrets.anaconda_token }}

0 comments on commit 5bf9b72

Please sign in to comment.