- source venv/bin/activate
- pip install pytest-cov
- py.test -q --cov=musicpd test.py
- only:
- changes:
+ rules:
+ - changes:
- musicpd.py
- test.py
+ - if: $MUSICPD_TEST
test-py3.11:
extends:
- dist/*.whl
- dist/*.tar.gz
- dist/*.zip
- only:
- - pushes
+ rules:
+ - if: $CI_PIPELINE_SOURCE == "push"
tag_release:
stage: build
- dist/*.tar.gz
- dist/*.zip
name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
- only:
- - tags
+ rules:
+ - if: $CI_COMMIT_TAG
pages:
stage: build
artifacts:
paths:
- public
- only:
- - master
+ rules:
+ - if: $CI_COMMIT_BRANCH == "master"