Skip to content

publish

publish #23

name: publish
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install build tools
run: |
pip install -U pip
pip install build
- name: Build package
run: |
pyproject-build --outdir dist/
- name: Install package
run: pip install dist/*.whl
- name: Run unit-tests
run: |
pip install -r tests/requirements.txt
pytest -vvra
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1