14
14
15
15
permissions :
16
16
actions : write
17
+ issues : write
17
18
contents : read
18
19
19
20
jobs :
22
23
runs-on : " ubuntu-20.04"
23
24
continue-on-error : ${{ matrix.config.experimental }}
24
25
env :
25
- USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.3 ,pypy-3.6,pypy-3.7,pypy-3.8'
26
+ USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.5 ,pypy-3.6,pypy-3.7,pypy-3.8'
26
27
27
28
strategy :
28
29
fail-fast : False
33
34
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
34
35
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
35
36
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36
- - {python-version: "3.11.0-alpha.3 ", testenvs: "py311-dev,build", experimental: True}
37
+ - {python-version: "3.11.0-alpha.5 ", testenvs: "py311-dev,build", experimental: True}
37
38
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
38
39
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
39
40
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
@@ -139,21 +140,21 @@ jobs:
139
140
140
141
- name : Setup Python 🐍
141
142
uses : " actions/setup-python@v2"
143
+ if : startsWith(github.ref, 'refs/tags/')
142
144
with :
143
145
python-version : 3.8
144
- if : startsWith(github.ref, 'refs/tags/')
145
146
146
147
- name : Install dependencies 🔧
148
+ if : startsWith(github.ref, 'refs/tags/')
147
149
run : |
148
150
python -m pip install --upgrade pip setuptools wheel
149
151
python -m pip install --upgrade tox
150
- if : startsWith(github.ref, 'refs/tags/')
151
152
152
153
- name : Build distributions 📦
154
+ if : startsWith(github.ref, 'refs/tags/')
153
155
run : |
154
156
tox -e build
155
157
156
- if : startsWith(github.ref, 'refs/tags/')
157
158
158
159
- name : Upload distribution to PyPI 🚀
159
160
if : startsWith(github.ref, 'refs/tags/')
@@ -163,6 +164,15 @@ jobs:
163
164
password : ${{ secrets.PYPI_TOKEN }}
164
165
skip_existing : true
165
166
167
+ - name : Close milestone 🚪
168
+ if : startsWith(github.ref, 'refs/tags/')
169
+ run : |
170
+ python -m pip install --upgrade github3.py packaging
171
+ python .github/milestones.py
172
+ env :
173
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
174
+
175
+
166
176
167
177
Conda :
168
178
needs : deploy
@@ -180,7 +190,7 @@ jobs:
180
190
- name : Install dependencies 🔧
181
191
run : |
182
192
python -m pip install --upgrade pip setuptools wheel
183
- python -m pip install --upgrade mkrecipe
193
+ python -m pip install --upgrade " mkrecipe" "setuptools>=40.6.0" "wheel>=0.34.2"
184
194
185
195
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
186
196
bash miniconda.sh -b -p $HOME/miniconda
0 commit comments