Update runners.py #85
Workflow file for this run
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: "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 }} |