6
6
branches : [master]
7
7
8
8
jobs :
9
- build :
9
+ test :
10
10
runs-on : ${{ matrix.os }}
11
11
strategy :
12
12
fail-fast : false
@@ -29,11 +29,32 @@ jobs:
29
29
- run : pip install -e .[toml] pytest
30
30
- run : pytest
31
31
32
+ check_selfinstall :
33
+ runs-on : ubuntu-latest
34
+ strategy :
35
+ fail-fast : false
36
+ matrix :
37
+ python_version : [ '2.7', '3.5', '3.6', '3.7', '3.8', 'pypy2', 'pypy3' ]
38
+ name : check self install - Python ${{ matrix.python_version }}
39
+ steps :
40
+ - uses : actions/checkout@v1
41
+ - name : Setup python
42
+ uses : actions/setup-python@v2
43
+ with :
44
+ python-version : ${{ matrix.python_version }}
45
+ architecture : x64
46
+ # self install testing needs some clarity
47
+ # so its being executed without any other tools running
48
+ - run : pip install -U setuptools
49
+ - run : python setup.py sdist
50
+ - run : easy_install dist/*
51
+ - run : python testing/check_self_install.py
52
+
32
53
33
54
eggs :
34
55
runs-on : ubuntu-latest
35
56
36
- needs : [build ]
57
+ needs : [test ]
37
58
name : Python ${{ matrix.python_version }} eggs
38
59
strategy :
39
60
matrix :
59
80
dist :
60
81
runs-on : ubuntu-latest
61
82
62
- needs : [build ]
83
+ needs : [test ]
63
84
name : Python bdist/wheel
64
85
steps :
65
86
- uses : actions/checkout@v1
@@ -78,15 +99,32 @@ jobs:
78
99
name : dist
79
100
path : dist
80
101
102
+
103
+ dist_check :
104
+ runs-on : ubuntu-latest
105
+ needs : [eggs, dist]
106
+ steps :
107
+ - uses : actions/setup-python@v2
108
+ with :
109
+ python-version : " 3.8"
110
+ - name : Install dependencies
111
+ run : pip install twine
112
+ - uses : actions/download-artifact@v2
113
+ with :
114
+ name : dist
115
+ path : dist
116
+ - run : twine check dist/*
117
+
81
118
dist_upload :
82
119
83
120
runs-on : ubuntu-latest
84
121
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pypa/setuptools_scm'
85
- needs : [eggs, dist ]
122
+ needs : [dist_check ]
86
123
steps :
87
124
- uses : actions/download-artifact@v2
88
125
with :
89
126
name : dist
127
+ path : dist
90
128
- name : Publish package to PyPI
91
129
uses : pypa/gh-action-pypi-publish@master
92
130
with :
0 commit comments