X-Git-Url: http://git.kaliko.me/?p=python-musicpd.git;a=blobdiff_plain;f=.gitlab-ci.yml;fp=.gitlab-ci.yml;h=514412926cb3b9d9d138b404c55d8a7f8c014425;hp=adcc708c09500ac2d9ef378b106f1bcf3f143ade;hb=43efcdd63b071ef5a5224fec37ebf298cfacd0f9;hpb=593b46bb7ce981af3272f5a33eb1727423e0d242 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adcc708..5144129 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,9 @@ stages: - pip install pytest-cov - py.test -q --cov=musicpd test.py only: - - pushes + changes: + - musicpd.py + - test.py test-py3.11: extends: @@ -68,9 +70,14 @@ test-py3.6: build: stage: build + extends: + - .cache_python script: + - python -m venv venv + - source venv/bin/activate + - pip install build # packaging test - - python setup.py bdist_wheel sdist + - python3 -m build -s -w - pip install dist/*.whl - pip install twine - twine check dist/* @@ -85,8 +92,13 @@ build: tag_release: stage: build + extends: + - .cache_python script: - - python setup.py bdist_wheel sdist + - python -m venv venv + - source venv/bin/activate + - pip install build + - python3 -m build -s -w artifacts: paths: - dist/*.whl