Show More
@@ -0,0 +1,42 b'' | |||
|
1 | # Workflow to build and test wheels. | |
|
2 | # To work on the wheel building infrastructure on a fork, comment out: | |
|
3 | # | |
|
4 | # if: github.repository == 'numpy/numpy' | |
|
5 | # | |
|
6 | # in the get_commit_message job. Be sure to include [wheel build] in your commit | |
|
7 | # message to trigger the build. All files related to wheel building are located | |
|
8 | # at tools/wheels/ | |
|
9 | # Alternatively, you can add labels to the pull request in order to trigger wheel | |
|
10 | # builds. | |
|
11 | # The labels that trigger builds are: | |
|
12 | # 36 - Build(for changes to the building process, | |
|
13 | # 14 - Release(ensure wheels build before release) | |
|
14 | on: | |
|
15 | workflow_dispatch: | |
|
16 | name: Nightly Wheel builder | |
|
17 | ||
|
18 | upload_anaconda: | |
|
19 | name: Upload to Anaconda | |
|
20 | runs-on: ubuntu-latest | |
|
21 | # The artifacts cannot be uploaded on PRs | |
|
22 | if: github.event_name != 'pull_request' | |
|
23 | ||
|
24 | steps: | |
|
25 | - uses: actions/checkout@v3 | |
|
26 | - name: Set up Python | |
|
27 | uses: actions/setup-python@v4 | |
|
28 | with: | |
|
29 | python-version: "3.10" | |
|
30 | cache: pip | |
|
31 | cache-dependency-path: | | |
|
32 | setup.cfg | |
|
33 | - name: Try building with Python build | |
|
34 | if: runner.os != 'Windows' # setup.py does not support sdist on Windows | |
|
35 | run: | | |
|
36 | python -m build | |
|
37 | ||
|
38 | - name: Upload wheel | |
|
39 | uses: scientific-python/upload-nightly-wheel | |
|
40 | with: | |
|
41 | artifact-names: dist/*.whl | |
|
42 | anaconda-nightly-upload-token: ${secrets.UPLOAD_TOKEN} |
General Comments 0
You need to be logged in to leave comments.
Login now