Merge pull request #36 from QuantumBA/streaming #22
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: Production Pipeline | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Run poetry image | |
uses: abatilo/actions-poetry@v2.0.0 | |
with: | |
poetry-version: 1.4.0 | |
- name: install dependencies | |
run: poetry install | |
- name: Test with pytest | |
run: poetry run pytest --cov=pyverless --cov-fail-under=80 --cov-report xml | |
- name: upload lib | |
env: | |
TOKEN: ${{ secrets.PIP_TOKEN }} | |
run: poetry build && POETRY_PYPI_TOKEN_PYPI=$TOKEN poetry publish |