Skip to content

Improve readme (#16) + temp fix for KeyError bug (#17) #25

Improve readme (#16) + temp fix for KeyError bug (#17)

Improve readme (#16) + temp fix for KeyError bug (#17) #25

Workflow file for this run

name: Run tests and publish
on:
pull_request:
push:
branches:
- main
tags:
- 'v*.*.*'
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install poetry dependencies
run: |
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Run tests
run: |
poetry run python -m unittest discover
release:
name: Release
runs-on: ubuntu-latest
needs: [checks]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
python_version: 3.9