forked from scikit-image/scikit-image
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.13 KB
/
nightly_wheel_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Nightly Wheel builder
on:
workflow_dispatch:
schedule:
# this cron is ran every Sunday at midnight UTC
- cron: "0 0 * * 0"
env:
CIBW_BUILD_VERBOSITY: 2
CIBW_TEST_REQUIRES: "-r requirements/default.txt -r requirements/test.txt"
CIBW_TEST_COMMAND: pytest --pyargs skimage
CIBW_ENVIRONMENT: PIP_PREFER_BINARY=1
permissions:
contents: read
jobs:
call-workflow-build-wheels:
uses: ./.github/workflows/wheels_recipe.yml
if: github.repository_owner == 'scikit-image' && github.ref == 'refs/heads/main'
upload_anaconda:
permissions:
contents: write # for softprops/action-gh-release to create GitHub release
name: Release
needs: call-workflow-build-wheels
if: github.repository_owner == 'scikit-image' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
id: download
with:
name: wheels
path: ./dist
- name: Upload wheel
uses: scientific-python/upload-nightly-action@main
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}}