stages: - lint - test - build - publish lint: stage: lint image: python:3.12 before_script: - apt-get update - apt-get install libgirepository1.0-dev -y - pip install .[lint] script: - black . tags: - docker test: stage: test image: python:3 before_script: - apt-get update - apt-get install libgirepository1.0-dev -y - pip install .[test] script: - pytest tags: - docker build: stage: build image: python:3 before_script: - apt-get update - apt-get install libgirepository1.0-dev -y - pip install .[build] script: - python3 setup.py sdist bdist_wheel tags: - docker artifacts: paths: - dist/* expire_in: 1 week only: - tags@funkwhale/mopidy - main@funkwhale/mopidy publish: stage: publish image: python:3 before_script: - apt-get update - apt-get install libgirepository1.0-dev -y - pip install .[publish] script: - twine upload dist/* tags: - docker dependencies: - build only: - tags@funkwhale/mopidy - main@funkwhale/mopidy