Beta #16
Workflow file for this run
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: Prod release | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: "read" | |
id-token: "write" | |
jobs: | |
test: | |
name: Test, build and publish | |
runs-on: | |
group: "Cabana-CICD" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Optional, use if you use setuptools_scm | |
submodules: true # Optional, use if you have submodules | |
- uses: FedericoCarboni/setup-ffmpeg@v3 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Test with tox | |
run: | | |
poetry install --no-interaction | |
poetry run tox | |
- name: Build | |
run: pipx run build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |