Merge pull request #56 from mapilio/remove_print #124
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: CI | |
on: | |
push: | |
branches: | |
- master | |
release: | |
types: | |
- published | |
jobs: | |
build-n-publish: | |
name: Mapilio Calculation Library | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
- name: Install build dependencies | |
uses: py-actions/py-dependency-install@v2 | |
with: | |
update-pip: "true" | |
update-setuptools: "true" | |
update-wheel: "true" | |
path: "requirements.txt" | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Creating dist files | |
run: | | |
python setup.py sdist | |
python setup.py bdist_wheel --universal | |
shell: bash | |
- name: CheckFiles | |
run: | | |
ls dist | |
shell: bash | |
- name: Publish a Python distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |