basic support for v2 and v3 groups #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wheels | |
on: [push, pull_request] | |
jobs: | |
build_artifacts: | |
name: Build wheel on ubuntu-latest | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
name: Install Python | |
with: | |
python-version: '3.8' | |
- name: Install PyBuild | |
run: | | |
python -m pip install 'build!=0.1' setuptools-scm | |
- name: Build wheel and sdist | |
run: | | |
python -m build | |
git describe | |
pwd | |
if [ -f dist/zarr-0.0.0.tar.gz ]; then | |
echo "WRONG VERSION NUMBER" | |
exit 1 | |
else | |
echo "All seem good" | |
fi | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: releases | |
path: dist | |
test_dist_pypi: | |
needs: [build_artifacts] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: releases | |
path: dist | |
- name: test | |
run: | | |
ls | |
ls dist | |
upload_pypi: | |
needs: [build_artifacts] | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: releases | |
path: dist | |
- uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_password }} | |
# To test: repository_url: https://test.pypi.org/legacy/ |