File tree 2 files changed +30
-3
lines changed
2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 20
20
uses : actions/setup-python@v1
21
21
with :
22
22
python-version : ${{ matrix.python-version }}
23
-
23
+
24
24
- name : Install numcodecs
25
25
run : |
26
26
python -m pip install -U pip setuptools wheel pytest
Original file line number Diff line number Diff line change 42
42
name : Build source distribution
43
43
runs-on : ubuntu-latest
44
44
steps :
45
- - uses : actions/checkout@v2
45
+ - uses : actions/checkout@v1
46
+ with :
47
+ submodules : true
46
48
47
49
- uses : actions/setup-python@v2
48
50
name : Install Python
@@ -52,19 +54,44 @@ jobs:
52
54
- name : Build sdist
53
55
run : python setup.py sdist
54
56
57
+ - name : test install
58
+ run : pip install dist/numcodecs*.tar.gz
59
+
55
60
- uses : actions/upload-artifact@v2
56
61
with :
57
62
path : dist/*.tar.gz
58
63
64
+ test_dist_pypi :
65
+ needs : [build_wheels, build_sdist]
66
+ runs-on : ubuntu-latest
67
+ steps :
68
+ - uses : actions/download-artifact@v1
69
+ with :
70
+ name : artifact
71
+ path : dist
72
+ - uses : actions/download-artifact@v1
73
+ with :
74
+ name : wheels
75
+ path : dist
76
+
77
+ - name : test
78
+ run : |
79
+ ls
80
+ ls dist
81
+
59
82
upload_pypi :
60
83
needs : [build_wheels, build_sdist]
61
84
runs-on : ubuntu-latest
62
85
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
63
86
steps :
64
- - uses : actions/download-artifact@v2
87
+ - uses : actions/download-artifact@v1
65
88
with :
66
89
name : artifact
67
90
path : dist
91
+ - uses : actions/download-artifact@v1
92
+ with :
93
+ name : wheels
94
+ path : dist
68
95
69
96
- uses : pypa/gh-action-pypi-publish@master
70
97
with :
You can’t perform that action at this time.
0 commit comments