Skip to content

v4.2.0

v4.2.0 #2

Workflow file for this run

name: Release
on:
# Support manually pushing a new release
workflow_dispatch: {}
# Trigger when a release is published
release:
types: [released]
defaults:
run:
shell: bash
jobs:
test:
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install -e .[dev]
- name: Test
run: |
python -m pytest
- name: Publish
env:
TWINE_NON_INTERACTIVE: true
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/* --skip-existing