@@ -11,17 +11,14 @@ jobs:
11
11
upload_nightly_wheels :
12
12
name : Upload nightly wheels to Anaconda Cloud
13
13
runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ shell : bash -l {0}
14
17
if : github.repository_owner == 'matplotlib'
15
18
16
19
steps :
17
- - name : Install Python
18
- uses : actions/setup-python@v4
19
- with :
20
- python-version : ' 3.x'
21
-
22
20
# c.f. https://github.com/actions/download-artifact/issues/3#issuecomment-1017141067
23
21
- name : Download wheel artifacts from last build on 'main'
24
- shell : bash
25
22
env :
26
23
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
24
run : |
@@ -50,12 +47,14 @@ jobs:
50
47
mv *.whl dist/
51
48
ls -l dist/
52
49
50
+ # N.B. anaconda-client is only maintained on the main channel
53
51
- name : Install anaconda-client
54
- run : |
55
- python -m pip install --upgrade pip setuptools wheel
56
- # c.f. https://github.com/Anaconda-Platform/anaconda-client/issues/540
57
- python -m pip install git+https://github.com/Anaconda-Server/anaconda-client@be1e14936a8e947da94d026c990715f0596d7043
58
- python -m pip list
52
+ uses : mamba-org/provision-with-micromamba@v12
53
+ with :
54
+ environment-file : false
55
+ environment-name : nightlies
56
+ extra-specs : anaconda-client=1.10.0
57
+ channels : main
59
58
60
59
- name : Upload wheels to Anaconda Cloud as nightlies
61
60
run : |
65
64
dist/matplotlib-*.whl
66
65
67
66
- name : Remove old uploads to save space
68
- shell : bash
69
67
run : |
70
68
N_LATEST_UPLOADS=5
71
69
78
76
79
77
if [ -s remove-package-versions.txt ]; then
80
78
while LANG=C IFS= read -r package_version ; do
79
+ echo "# Removing scipy-wheels-nightly/matplotlib/${package_version}"
81
80
anaconda --token ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} remove \
82
81
--force \
83
82
"scipy-wheels-nightly/matplotlib/${package_version}"
0 commit comments