Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d66a1b2

Browse files
Apply Elliott fixes and suggestions
Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 5527d13 commit d66a1b2

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/nightlies.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ name: Upload nightly wheels to Anaconda Cloud
33
on:
44
# Run daily at 1:23 UTC to upload nightly wheels to Anaconda Cloud
55
schedule:
6-
- cron: '23 1 * * *'
6+
- cron: '23 1 * * *'
77
# Run on demand with workflow dispatch
88
workflow_dispatch:
99

1010
jobs:
1111
upload_nightly_wheels:
1212
name: Upload nightly wheels to Anaconda Cloud
1313
runs-on: ubuntu-latest
14+
if: github.repository_owner == 'matplotlib'
1415

1516
steps:
1617
- name: Install Python
@@ -29,10 +30,17 @@ jobs:
2930
WORKFLOW_NAME="cibuildwheel.yml"
3031
ARTIFACT_NAME=wheels
3132
32-
gh run --repo "${PROJECT_REPO}" list --branch "${BRANCH}" --workflow "${WORKFLOW_NAME}" --json status,databaseId > runs.json
33+
gh run --repo "${PROJECT_REPO}" \
34+
list --branch "${BRANCH}" \
35+
--workflow "${WORKFLOW_NAME}" \
36+
--json status,databaseId > runs.json
3337
# Get latest completed build of wheels
34-
RUN_ID=$(cat runs.json | jq -c '[ .[] | select(.status == "completed") ] | sort_by(.databaseId) | reverse | .[0].databaseId')
35-
gh run --repo "${PROJECT_REPO}" download "${RUN_ID}" --name "${ARTIFACT_NAME}"
38+
RUN_ID=$(cat runs.json | \
39+
jq -c '[ .[] | select(.status == "completed") ] | sort_by(.databaseId) | reverse | .[0].databaseId'
40+
)
41+
gh run --repo "${PROJECT_REPO}" \
42+
download "${RUN_ID}" --name "${ARTIFACT_NAME}"
43+
3644
3745
mkdir dist
3846
mv *.whl dist/

doc/users/installing/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Installing a nightly build
8787
Matplotlib makes nightly development build wheels available on the
8888
`scipy-wheels-nightly Anaconda Cloud organization
8989
<https://anaconda.org/scipy-wheels-nightly>`_.
90-
These wheels can be installed with ``pip`` by specifiying scipy-wheels-nightly
90+
These wheels can be installed with ``pip`` by specifying scipy-wheels-nightly
9191
as the package index to query:
9292

9393
.. code-block:: sh

0 commit comments

Comments
 (0)