77 branches-ignore :
88 - ' repo-helper-update'
99 - ' pre-commit-ci-update-config'
10+ - ' imgbot'
1011 tags :
1112 - ' *'
1213 pull_request :
1314
1415permissions :
1516 actions : write
17+ issues : write
1618 contents : read
1719
1820jobs :
2123 runs-on : " ubuntu-20.04"
2224 continue-on-error : ${{ matrix.config.experimental }}
2325 env :
24- USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10.0-rc.1 ,pypy-3.6,pypy-3.7'
26+ USING_COVERAGE : ' 3.6,3.7,3.8,3.9,3.10,pypy-3.6,pypy-3.7'
2527
2628 strategy :
2729 fail-fast : False
3133 - {python-version: "3.7", testenvs: "py37,build", experimental: False}
3234 - {python-version: "3.8", testenvs: "py38,build", experimental: False}
3335 - {python-version: "3.9", testenvs: "py39,build", experimental: False}
34- - {python-version: "3.10.0-rc.1 ", testenvs: "py310-dev,build", experimental: True}
36+ - {python-version: "3.10", testenvs: "py310-dev,build", experimental: True}
3537 - {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3638 - {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3739
@@ -100,21 +102,26 @@ jobs:
100102 path : coverage
101103
102104 - name : Display structure of downloaded files
105+ id : show
103106 run : ls -R
104107 working-directory : coverage
108+ continue-on-error : true
105109
106110 - name : Combine Coverage 👷
111+ if : ${{ steps.show.outcome != 'failure' }}
107112 run : |
108113 shopt -s globstar
109114 python -m coverage combine coverage/**/.coverage
110115
111116 - name : " Upload Combined Coverage Artefact 🚀"
117+ if : ${{ steps.show.outcome != 'failure' }}
112118 uses : actions/upload-artifact@v2
113119 with :
114120 name : " combined-coverage"
115121 path : .coverage
116122
117123 - name : " Upload Combined Coverage to Coveralls"
124+ if : ${{ steps.show.outcome != 'failure' }}
118125 env :
119126 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
120127 run : |
@@ -131,21 +138,21 @@ jobs:
131138
132139 - name : Setup Python 🐍
133140 uses : " actions/setup-python@v2"
141+ if : startsWith(github.ref, 'refs/tags/')
134142 with :
135143 python-version : 3.8
136- if : startsWith(github.ref, 'refs/tags/')
137144
138145 - name : Install dependencies 🔧
146+ if : startsWith(github.ref, 'refs/tags/')
139147 run : |
140148 python -m pip install --upgrade pip setuptools wheel
141149 python -m pip install --upgrade tox
142- if : startsWith(github.ref, 'refs/tags/')
143150
144151 - name : Build distributions 📦
152+ if : startsWith(github.ref, 'refs/tags/')
145153 run : |
146154 tox -e build
147155
148- if : startsWith(github.ref, 'refs/tags/')
149156
150157 - name : Upload distribution to PyPI 🚀
151158 if : startsWith(github.ref, 'refs/tags/')
@@ -155,6 +162,15 @@ jobs:
155162 password : ${{ secrets.PYPI_TOKEN }}
156163 skip_existing : true
157164
165+ - name : Close milestone 🚪
166+ if : startsWith(github.ref, 'refs/tags/')
167+ run : |
168+ python -m pip install --upgrade github3.py packaging
169+ python .github/milestones.py
170+ env :
171+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
172+
173+
158174
159175 Conda :
160176 needs : deploy
@@ -172,7 +188,7 @@ jobs:
172188 - name : Install dependencies 🔧
173189 run : |
174190 python -m pip install --upgrade pip setuptools wheel
175- python -m pip install --upgrade mkrecipe
191+ python -m pip install --upgrade " mkrecipe" "whey"
176192
177193 wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
178194 bash miniconda.sh -b -p $HOME/miniconda
0 commit comments