Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install numcodecs
run: |
python -m pip install -U pip setuptools wheel pytest
Expand Down
31 changes: 29 additions & 2 deletions .github/workflows/wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1
with:
submodules: true

- uses: actions/setup-python@v2
name: Install Python
Expand All @@ -52,19 +54,44 @@ jobs:
- name: Build sdist
run: python setup.py sdist

- name: test install
run: pip install dist/numcodecs*.tar.gz

- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

test_dist_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v1
with:
name: artifact
path: dist
- uses: actions/download-artifact@v1
with:
name: wheels
path: dist

- name: test
run: |
ls
ls dist

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to try installing the wheel here? Or was this just temporary debugging?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug. It allow to check if all files are properly placed.


upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v1
with:
name: artifact
path: dist
- uses: actions/download-artifact@v1
with:
name: wheels
path: dist

- uses: pypa/gh-action-pypi-publish@master
with:
Expand Down