Setup github actions (#2) #2
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: Publish | |
on: | |
push: | |
branches: | |
- "master" | |
env: | |
PYTHON_VERSION: 3.11.3 | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: install poetry | |
run: pip3 install poetry | |
- name: install deps | |
run: poetry install | |
- name: test | |
run: poetry run pytest --cache-clear | |
- name: publish | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN}} | |
poetry build | |
poetry publish |