Skip to content

fifos protected !

fifos protected ! #74

name: "On Tag -> Deploy a release to pypi"
on:
push:
tags:
- 'v*.*.*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Patch Sources with "tag version ref"
run: python .github/workflows/update_version.py ${{github.ref_name}}
- name: Install pytest + dependancies
run: |
python -m pip install --upgrade pip poetry
poetry lock
poetry install --with dev
- name: Test with pytest
run: |
poetry run pytest
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}