Skip to content

release

release #41

Workflow file for this run

name: release
on:
release:
types: [released]
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Generate coverage report
run: |
pip install uv
uv sync --all-extras
uv pip install -U pytest-cov
uv run pytest -m "not slow" --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
run: |
uv pip install -U codecov
uv run codecov -t ${{ secrets.CODECOV_TOKEN }}
pypi:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install --user -U pip uv
uv sync
- name: Build
run: |
uv pip install build
uv run python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1