Skip to content

feat: try unfreeze poetry version #9

feat: try unfreeze poetry version

feat: try unfreeze poetry version #9

Workflow file for this run

name: Build and publish
on: [push, pull_request, workflow_dispatch]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/checkout@v2
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Check code style with Black
run: |
pre-commit install
pre-commit run --all-files --color always --verbose --show-diff-on-failure
- name: Test with pytest
run: scripts/run_tests.sh
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
poetry version $(git describe --tags --abbrev=0)
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build