Skip to content

Commit 77230da

Browse files
authored
Fix build (#244)
* fix build * add test run * fix sdist build * test sdist install * restore ci-osx
1 parent 673b7b4 commit 77230da

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/ci-osx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
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

.github/workflows/wheel.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
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:

0 commit comments

Comments
 (0)