Skip to content

chore: add math import to ComplexCalculator class #34

chore: add math import to ComplexCalculator class

chore: add math import to ComplexCalculator class #34

name: Upload python package
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Config poetry
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} && poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build and publish
run: |
poetry version $(git describe --tags --abbrev=0)
poetry publish --build