Fix return type for get_medoids_final()
and expose get_labels()
#405
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: Linux - build source distribution and wheels | |
on: | |
push: | |
branches: # prevents running on tag push | |
- '**' | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
build_sdist: | |
name: Build source distribution (SDist) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
# Note: The dependencies below are not strictly necessary, | |
# They just make things easier for our install_checks | |
# in our setup.py when building the sdist on Ubuntu | |
- name: Install Ubuntu dependencies | |
run: | | |
sudo apt update | |
sudo apt install -y build-essential checkinstall libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev | |
sudo apt install -y clang-format cppcheck | |
# See note above | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest | |
python -m pip install -r requirements.txt | |
- name: Build sdist | |
run: python setup.py sdist --formats=gztar,zip | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: | | |
dist/*.tar.gz | |
# dist/*.zip # We can only upload one sdist per release | |
build_wheels: | |
needs: [build_sdist] | |
name: Build wheels on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BUILD_VERBOSITY: 3 | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: wheelhouse/*.whl | |
upload_pypi: | |
needs: [build_wheels, build_sdist] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
name: artifact | |
path: dist | |
- name: Upload to TestPyPI on PR update | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.TEST_PYPI_APIKEY }} | |
repository_url: https://test.pypi.org/legacy/ | |
- name: Upload to PyPI on published release | |
if: ${{ github.event_name == 'release' && github.event.action == 'published' }} | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_APIKEY }} |