File tree Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Expand file tree Collapse file tree 2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 2020 uses : actions/setup-python@v1
2121 with :
2222 python-version : ${{ matrix.python-version }}
23-
23+
2424 - name : Install numcodecs
2525 run : |
2626 python -m pip install -U pip setuptools wheel pytest
Original file line number Diff line number Diff line change 4242 name : Build source distribution
4343 runs-on : ubuntu-latest
4444 steps :
45- - uses : actions/checkout@v2
45+ - uses : actions/checkout@v1
46+ with :
47+ submodules : true
4648
4749 - uses : actions/setup-python@v2
4850 name : Install Python
@@ -52,19 +54,44 @@ jobs:
5254 - name : Build sdist
5355 run : python setup.py sdist
5456
57+ - name : test install
58+ run : pip install dist/numcodecs*.tar.gz
59+
5560 - uses : actions/upload-artifact@v2
5661 with :
5762 path : dist/*.tar.gz
5863
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+
5982 upload_pypi :
6083 needs : [build_wheels, build_sdist]
6184 runs-on : ubuntu-latest
6285 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
6386 steps :
64- - uses : actions/download-artifact@v2
87+ - uses : actions/download-artifact@v1
6588 with :
6689 name : artifact
6790 path : dist
91+ - uses : actions/download-artifact@v1
92+ with :
93+ name : wheels
94+ path : dist
6895
6996 - uses : pypa/gh-action-pypi-publish@master
7097 with :
You can’t perform that action at this time.
0 commit comments