7
7
branches-ignore :
8
8
- ' repo-helper-update'
9
9
- ' pre-commit-ci-update-config'
10
+ - ' imgbot'
10
11
tags :
11
12
- ' *'
12
13
pull_request :
13
14
14
15
permissions :
15
16
actions : write
17
+ issues : write
16
18
contents : read
17
19
18
20
jobs :
21
23
runs-on : " ubuntu-20.04"
22
24
continue-on-error : ${{ matrix.config.experimental }}
23
25
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'
25
27
26
28
strategy :
27
29
fail-fast : False
31
33
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
32
34
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
33
35
- {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}
35
37
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
36
38
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
37
39
@@ -100,21 +102,26 @@ jobs:
100
102
path : coverage
101
103
102
104
- name : Display structure of downloaded files
105
+ id : show
103
106
run : ls -R
104
107
working-directory : coverage
108
+ continue-on-error : true
105
109
106
110
- name : Combine Coverage 👷
111
+ if : ${{ steps.show.outcome != 'failure' }}
107
112
run : |
108
113
shopt -s globstar
109
114
python -m coverage combine coverage/**/.coverage
110
115
111
116
- name : " Upload Combined Coverage Artefact 🚀"
117
+ if : ${{ steps.show.outcome != 'failure' }}
112
118
uses : actions/upload-artifact@v2
113
119
with :
114
120
name : " combined-coverage"
115
121
path : .coverage
116
122
117
123
- name : " Upload Combined Coverage to Coveralls"
124
+ if : ${{ steps.show.outcome != 'failure' }}
118
125
env :
119
126
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
120
127
run : |
@@ -131,21 +138,21 @@ jobs:
131
138
132
139
- name : Setup Python 🐍
133
140
uses : " actions/setup-python@v2"
141
+ if : startsWith(github.ref, 'refs/tags/')
134
142
with :
135
143
python-version : 3.8
136
- if : startsWith(github.ref, 'refs/tags/')
137
144
138
145
- name : Install dependencies 🔧
146
+ if : startsWith(github.ref, 'refs/tags/')
139
147
run : |
140
148
python -m pip install --upgrade pip setuptools wheel
141
149
python -m pip install --upgrade tox
142
- if : startsWith(github.ref, 'refs/tags/')
143
150
144
151
- name : Build distributions 📦
152
+ if : startsWith(github.ref, 'refs/tags/')
145
153
run : |
146
154
tox -e build
147
155
148
- if : startsWith(github.ref, 'refs/tags/')
149
156
150
157
- name : Upload distribution to PyPI 🚀
151
158
if : startsWith(github.ref, 'refs/tags/')
@@ -155,6 +162,15 @@ jobs:
155
162
password : ${{ secrets.PYPI_TOKEN }}
156
163
skip_existing : true
157
164
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
+
158
174
159
175
Conda :
160
176
needs : deploy
@@ -172,7 +188,7 @@ jobs:
172
188
- name : Install dependencies 🔧
173
189
run : |
174
190
python -m pip install --upgrade pip setuptools wheel
175
- python -m pip install --upgrade mkrecipe
191
+ python -m pip install --upgrade " mkrecipe" "whey"
176
192
177
193
wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linux-x86_64.sh -O miniconda.sh
178
194
bash miniconda.sh -b -p $HOME/miniconda
0 commit comments