Show More
@@ -1,42 +1,29 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 |
|
|
1 | on: | |
15 | workflow_dispatch: |
|
2 | workflow_dispatch: | |
16 | name: Nightly Wheel builder |
|
3 | name: Nightly Wheel builder | |
17 |
|
4 | |||
18 |
|
|
5 | upload_anaconda: | |
19 |
|
|
6 | name: Upload to Anaconda | |
20 |
|
|
7 | runs-on: ubuntu-latest | |
21 |
|
|
8 | # The artifacts cannot be uploaded on PRs | |
22 |
|
|
9 | if: github.event_name != 'pull_request' | |
23 |
|
10 | |||
24 |
|
|
11 | steps: | |
25 |
|
|
12 | - uses: actions/checkout@v3 | |
26 |
|
|
13 | - name: Set up Python | |
27 |
|
|
14 | uses: actions/setup-python@v4 | |
28 |
|
|
15 | with: | |
29 |
|
|
16 | python-version: "3.10" | |
30 |
|
|
17 | cache: pip | |
31 |
|
|
18 | cache-dependency-path: | | |
32 |
|
|
19 | setup.cfg | |
33 |
|
|
20 | - name: Try building with Python build | |
34 |
|
|
21 | if: runner.os != 'Windows' # setup.py does not support sdist on Windows | |
35 |
|
|
22 | run: | | |
36 |
|
|
23 | python -m build | |
37 |
|
24 | |||
38 |
|
|
25 | - name: Upload wheel | |
39 |
|
|
26 | uses: scientific-python/upload-nightly-wheel | |
40 |
|
|
27 | with: | |
41 |
|
|
28 | artifact-names: dist/*.whl | |
42 |
|
|
29 | anaconda-nightly-upload-token: ${secrets.UPLOAD_TOKEN} |
General Comments 0
You need to be logged in to leave comments.
Login now