5 - python -V # Print out python version for debugging
13 FF_USE_FASTZIP: 1 # enable faster caching/artifacting
14 PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
16 key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
17 paths: # cache the venv and pip cache (you may opt to use just 1 of these)
24 - source venv/bin/activate
25 - pip install pytest-cov
26 - py.test -q --cov=musicpd test.py
31 - if: $CI_PIPELINE_SOURCE == "schedule"
50 coverage: '/musicpd.py\s+\d+\s+\d+\s+(\d+)%/'
83 - source venv/bin/activate
86 - python3 -m build -s -w
87 - pip install dist/*.whl
95 - if: $CI_PIPELINE_SOURCE == "push"
100 - if: $CI_PIPELINE_SOURCE == "schedule"
107 - python -m venv venv
108 - source venv/bin/activate
110 - python3 -m build -s -w
114 name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
122 - pip install sphinx sphinx_rtd_theme
123 - sphinx-build doc/source -b html ./html -D html_theme=sphinx_rtd_theme
125 - if: $CI_PIPELINE_SOURCE == "push"
128 - if: $CI_PIPELINE_SOURCE == "schedule"
133 - pip install sphinx sphinx_rtd_theme
134 - sphinx-build -d ./build/doctrees doc/source -b html ./public -D html_theme=sphinx_rtd_theme
139 - if: $CI_COMMIT_BRANCH == "master"