File tree 3 files changed +59
-46
lines changed
3 files changed +59
-46
lines changed Original file line number Diff line number Diff line change
1
+ name : deploy
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ # These tags are protected, see:
7
+ # https://github.com/pytest-dev/pytest/settings/tag_protection
8
+ - " [0-9]+.[0-9]+.[0-9]+"
9
+ - " [0-9]+.[0-9]+.[0-9]+rc[0-9]+"
10
+
11
+
12
+ # Set permissions at the job level.
13
+ permissions : {}
14
+
15
+ jobs :
16
+
17
+ deploy :
18
+ if : github.repository == 'pytest-dev/pytest'
19
+
20
+ runs-on : ubuntu-latest
21
+ timeout-minutes : 30
22
+ permissions :
23
+ contents : write
24
+
25
+ steps :
26
+ - uses : actions/checkout@v2
27
+ with :
28
+ fetch-depth : 0
29
+ persist-credentials : false
30
+
31
+ - name : Set up Python
32
+ uses : actions/setup-python@v2
33
+ with :
34
+ python-version : " 3.7"
35
+
36
+ - name : Install dependencies
37
+ run : |
38
+ python -m pip install --upgrade pip
39
+ pip install --upgrade build tox
40
+
41
+ - name : Build package
42
+ run : |
43
+ python -m build
44
+
45
+ - name : Publish package to PyPI
46
+ uses : pypa/gh-action-pypi-publish@master
47
+ with :
48
+ user : __token__
49
+ password : ${{ secrets.pypi_token }}
50
+
51
+ - name : Publish GitHub release notes
52
+ env :
53
+ GH_RELEASE_NOTES_TOKEN : ${{ github.token }}
54
+ run : |
55
+ sudo apt-get install pandoc
56
+ tox -e publish-gh-release-notes
Original file line number Diff line number Diff line change 1
- name : main
1
+ name : test
2
2
3
3
on :
4
4
push :
@@ -187,46 +187,3 @@ jobs:
187
187
fail_ci_if_error : true
188
188
files : ./coverage.xml
189
189
verbose : true
190
-
191
- deploy :
192
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pytest'
193
-
194
- runs-on : ubuntu-latest
195
- timeout-minutes : 30
196
- permissions :
197
- contents : write
198
-
199
- needs : [build]
200
-
201
- steps :
202
- - uses : actions/checkout@v2
203
- with :
204
- fetch-depth : 0
205
- persist-credentials : false
206
-
207
- - name : Set up Python
208
- uses : actions/setup-python@v2
209
- with :
210
- python-version : " 3.7"
211
-
212
- - name : Install dependencies
213
- run : |
214
- python -m pip install --upgrade pip
215
- pip install --upgrade build tox
216
-
217
- - name : Build package
218
- run : |
219
- python -m build
220
-
221
- - name : Publish package to PyPI
222
- uses : pypa/gh-action-pypi-publish@master
223
- with :
224
- user : __token__
225
- password : ${{ secrets.pypi_token }}
226
-
227
- - name : Publish GitHub release notes
228
- env :
229
- GH_RELEASE_NOTES_TOKEN : ${{ github.token }}
230
- run : |
231
- sudo apt-get install pandoc
232
- tox -e publish-gh-release-notes
Original file line number Diff line number Diff line change 20
20
:target: https://codecov.io/gh/pytest-dev/pytest
21
21
:alt: Code coverage Status
22
22
23
- .. image :: https://github.com/pytest-dev/pytest/workflows/main /badge.svg
24
- :target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Amain
23
+ .. image :: https://github.com/pytest-dev/pytest/workflows/test /badge.svg
24
+ :target: https://github.com/pytest-dev/pytest/actions?query=workflow%3Atest
25
25
26
26
.. image :: https://results.pre-commit.ci/badge/github/pytest-dev/pytest/main.svg
27
27
:target: https://results.pre-commit.ci/latest/github/pytest-dev/pytest/main
You can’t perform that action at this time.
0 commit comments