1414
1515permissions :
1616 actions : write
17+ issues : write
1718 contents : read
1819
1920jobs :
2223 runs-on : " ubuntu-20.04"
2324 continue-on-error : ${{ matrix.config.experimental }}
2425 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'
2627
2728 strategy :
2829 fail-fast : False
3334 - {python-version: "3.8", testenvs: "py38,build", experimental: False}
3435 - {python-version: "3.9", testenvs: "py39,build", experimental: False}
3536 - {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}
3738 - {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3839 - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3940 - {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
@@ -139,21 +140,21 @@ jobs:
139140
140141 - name : Setup Python 🐍
141142 uses : " actions/setup-python@v2"
143+ if : startsWith(github.ref, 'refs/tags/')
142144 with :
143145 python-version : 3.8
144- if : startsWith(github.ref, 'refs/tags/')
145146
146147 - name : Install dependencies 🔧
148+ if : startsWith(github.ref, 'refs/tags/')
147149 run : |
148150 python -m pip install --upgrade pip setuptools wheel
149151 python -m pip install --upgrade tox
150- if : startsWith(github.ref, 'refs/tags/')
151152
152153 - name : Build distributions 📦
154+ if : startsWith(github.ref, 'refs/tags/')
153155 run : |
154156 tox -e build
155157
156- if : startsWith(github.ref, 'refs/tags/')
157158
158159 - name : Upload distribution to PyPI 🚀
159160 if : startsWith(github.ref, 'refs/tags/')
@@ -163,6 +164,15 @@ jobs:
163164 password : ${{ secrets.PYPI_TOKEN }}
164165 skip_existing : true
165166
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+
166176
167177 Conda :
168178 needs : deploy
@@ -180,7 +190,7 @@ jobs:
180190 - name : Install dependencies 🔧
181191 run : |
182192 python -m pip install --upgrade pip setuptools wheel
183- python -m pip install --upgrade mkrecipe
193+ python -m pip install --upgrade " mkrecipe" "whey"
184194
185195 wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
186196 bash miniconda.sh -b -p $HOME/miniconda
0 commit comments