Fix _format_genre and _list2str methods #25
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: Build and release | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
concurrency: # Run release builds sequentially, cancel outdated PR builds | |
group: ci-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
permissions: # Grant write access to github.token within non-pull_request builds | |
contents: write | |
id-token: write | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- id: release | |
name: Prepare release | |
uses: mgoltzsche/conventional-release@v0 | |
with: | |
commit-files: setup.py | |
- name: Bump module version | |
if: steps.release.outputs.publish # runs only if release build | |
run: | | |
sed -Ei "s/^( +version=).+/\1'$RELEASE_VERSION',/" setup.py | |
- name: Unit test | |
run: make test | |
# TODO: Make e2e tests work again within CI. | |
# They stopped working now apparently because youtube blocks unauthenticated requests from GHA. | |
#- name: E2E test | |
# run: make test-e2e | |
- name: Build wheel | |
run: | | |
set -u | |
echo Building beets-ytimport wheel $RELEASE_VERSION | |
make | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
if: steps.release.outputs.publish # runs only if release build | |