@@ -2,169 +2,168 @@ name: Python wheels
22on :
33 push :
44 tags :
5- - ' v*.*.*'
5+ - " v*.*.*"
66
77jobs :
8- test_linux :
9- runs-on : ubuntu-latest
10- steps :
11- - uses : actions/checkout@v2
12- with :
13- submodules : recursive
14-
15- - uses : actions/setup-python@v2
16- with :
17- python-version : " 3.x"
18-
19- - name : Upgrade pip
20- run : pip install -U setuptools wheel pip
21-
22- - name : Install package for testing
23- run : pip install ".[test]"
24-
25- - name : Run tests
26- run : >
27- export MPP_DIRECTORY=$(pwd) &&
28- export MPP_DATA_DIRECTORY=$MPP_DIRECTORY/data &&
29- pytest
30-
31- test_mac :
32- runs-on : macos-latest
33- steps :
34- - uses : actions/checkout@v2
35- with :
36- submodules : recursive
37-
38- - uses : actions/setup-python@v2
39- with :
40- python-version : " 3.x"
41-
42- - name : Upgrade pip
43- run : pip install -U setuptools wheel pip
44-
45- - name : Install package for testing
46- run : pip install ".[test]"
47-
48- - name : Run tests
49- run : >
50- export MPP_DIRECTORY=$(pwd) &&
51- export MPP_DATA_DIRECTORY=$MPP_DIRECTORY/data &&
52- pytest
53-
54- linux_wheels :
55- strategy :
56- matrix :
57- python-version :
58- - cp36-cp36m
59- - cp37-cp37m
60- - cp38-cp38
61- - cp39-cp39
62-
63- needs : test_linux
64- runs-on : ubuntu-latest
65- steps :
66- - uses : actions/checkout@v2
67- with :
68- submodules : recursive
69-
70- - uses : actions/setup-python@v2
71- with :
72- python-version : 3.9
73-
74- - name : Upgrade pip
75- run : pip install -U setuptools wheel pip
76-
77- - name : Build manylinux Python wheels
78- uses : RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2010_x86_64
79- with :
80- python-versions : " ${{ matrix.python-version }}"
81-
82- - uses : actions/upload-artifact@v2
83- with :
84- name : linux_wheels
85- path : " dist/*-manylinux*.whl"
86- retention-days : 1
87-
88- mac_wheels :
89- strategy :
90- matrix :
91- python-version :
92- - 3.6
93- - 3.7
94- - 3.8
95- - 3.9
96- needs : test_mac
97- runs-on : macos-latest
98- steps :
99- - uses : actions/checkout@v2
100- with :
101- submodules : recursive
102-
103- - uses : actions/setup-python@v2
104- with :
105- python-version : " ${{ matrix.python-version }}"
106-
107- - name : Upgrade pip
108- run : pip install -U setuptools wheel pip
109-
110- - name : Build wheels
111- run : pip wheel . -w dist/
112-
113- - uses : actions/upload-artifact@v2
114- with :
115- name : mac_wheels
116- path : " dist/*.whl"
117- retention-days : 1
118-
119- sdist :
120- needs : test_linux
121- runs-on : ubuntu-latest
122- steps :
123- - uses : actions/checkout@v2
124- with :
125- submodules : recursive
126-
127- - uses : actions/setup-python@v2
128- with :
129- python-version : 3.9
130-
131- - name : Upgrade pip
132- run : pip install -U setuptools wheel pip scikit-build
133-
134- - name : Build sdist
135- run : python setup.py sdist
136-
137- - uses : actions/upload-artifact@v2
138- with :
139- name : sdist
140- path : " dist/*.tar.gz"
141- retention-days : 1
142-
143- upload_wheels :
144- runs-on : ubuntu-latest
145- needs : [linux_wheels, mac_wheels]
146- steps :
147- - uses : actions/download-artifact@v2
148- with :
149- name : linux_wheels
150- path : dist
151-
152- - uses : actions/download-artifact@v2
153- with :
154- name : mac_wheels
155- path : dist
156-
157- - uses : actions/download-artifact@v2
158- with :
159- name : sdist
160- path : dist
161-
162- - name : Upgrade pip
163- run : pip install -U setuptools wheel pip
164-
165- - name : Install twine
166- run : pip install twine
167-
168- - name : Upload wheels
169- run : twine upload -u __token__ -p "${{ secrets.TESTPYPI_TOKEN }}" --repository testpypi dist/*
170-
8+ test_linux :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v2
12+ with :
13+ submodules : recursive
14+
15+ - uses : actions/setup-python@v2
16+ with :
17+ python-version : " 3.x"
18+
19+ - name : Upgrade pip
20+ run : pip install -U setuptools wheel pip
21+
22+ - name : Install package for testing
23+ run : pip install ".[test]"
24+
25+ - name : Run tests
26+ run : >
27+ export MPP_DIRECTORY=$(pwd) &&
28+ export MPP_DATA_DIRECTORY=$MPP_DIRECTORY/data &&
29+ pytest
30+
31+ test_mac :
32+ runs-on : macos-latest
33+ steps :
34+ - uses : actions/checkout@v2
35+ with :
36+ submodules : recursive
37+
38+ - uses : actions/setup-python@v2
39+ with :
40+ python-version : " 3.x"
41+
42+ - name : Upgrade pip
43+ run : pip install -U setuptools wheel pip
44+
45+ - name : Install package for testing
46+ run : pip install ".[test]"
47+
48+ - name : Run tests
49+ run : >
50+ export MPP_DIRECTORY=$(pwd) &&
51+ export MPP_DATA_DIRECTORY=$MPP_DIRECTORY/data &&
52+ pytest
53+
54+ linux_wheels :
55+ strategy :
56+ matrix :
57+ python-version :
58+ - cp36-cp36m
59+ - cp37-cp37m
60+ - cp38-cp38
61+ - cp39-cp39
62+
63+ needs : test_linux
64+ runs-on : ubuntu-latest
65+ steps :
66+ - uses : actions/checkout@v2
67+ with :
68+ submodules : recursive
69+
70+ - uses : actions/setup-python@v2
71+ with :
72+ python-version : 3.9
73+
74+ - name : Upgrade pip
75+ run : pip install -U setuptools wheel pip
76+
77+ - name : Build manylinux Python wheels
78+ uses : RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2010_x86_64
79+ with :
80+ python-versions : " ${{ matrix.python-version }}"
81+
82+ - uses : actions/upload-artifact@v2
83+ with :
84+ name : linux_wheels
85+ path : " dist/*-manylinux*.whl"
86+ retention-days : 1
87+
88+ mac_wheels :
89+ strategy :
90+ matrix :
91+ python-version :
92+ - 3.6
93+ - 3.7
94+ - 3.8
95+ - 3.9
96+ needs : test_mac
97+ runs-on : macos-latest
98+ steps :
99+ - uses : actions/checkout@v2
100+ with :
101+ submodules : recursive
102+
103+ - uses : actions/setup-python@v2
104+ with :
105+ python-version : " ${{ matrix.python-version }}"
106+
107+ - name : Upgrade pip
108+ run : pip install -U setuptools wheel pip
109+
110+ - name : Build wheels
111+ run : pip wheel . -w dist/
112+
113+ - uses : actions/upload-artifact@v2
114+ with :
115+ name : mac_wheels
116+ path : " dist/*.whl"
117+ retention-days : 1
118+
119+ sdist :
120+ needs : test_linux
121+ runs-on : ubuntu-latest
122+ steps :
123+ - uses : actions/checkout@v2
124+ with :
125+ submodules : recursive
126+
127+ - uses : actions/setup-python@v2
128+ with :
129+ python-version : 3.9
130+
131+ - name : Upgrade pip
132+ run : pip install -U setuptools wheel pip scikit-build
133+
134+ - name : Build sdist
135+ run : python setup.py sdist
136+
137+ - uses : actions/upload-artifact@v2
138+ with :
139+ name : sdist
140+ path : " dist/*.tar.gz"
141+ retention-days : 1
142+
143+ upload_wheels :
144+ runs-on : ubuntu-latest
145+ needs : [linux_wheels, mac_wheels]
146+ steps :
147+ - uses : actions/download-artifact@v2
148+ with :
149+ name : linux_wheels
150+ path : dist
151+
152+ - uses : actions/download-artifact@v2
153+ with :
154+ name : mac_wheels
155+ path : dist
156+
157+ - uses : actions/download-artifact@v2
158+ with :
159+ name : sdist
160+ path : dist
161+
162+ - name : Upgrade pip
163+ run : pip install -U setuptools wheel pip
164+
165+ - name : Install twine
166+ run : pip install twine
167+
168+ - name : Upload wheels
169+ run : twine upload -u __token__ -p "${{ secrets.PYPI_TOKEN }}" dist/*
0 commit comments