diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8fb8b4..9ddc781 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,13 +3,16 @@ build: key: cache paths: [.cache] image: yourlabs/shlax - script: pip install -U --user -e . && CACHE_DIR=$(pwd)/.cache ./shlaxfile.py -d - shlax build push + script: pip install -U --user -e . && CACHE_DIR=$(pwd)/.cache ./shlaxfile.py build stage: build + +test: + image: yourlabs/python + stage: build + script: pip install -U --user -e . && py.test -sv tests + pypi: image: yourlabs/python only: [tags] script: pypi-release stage: deploy -test: {image: yourlabs/python, script: 'pip install -U --user -e .[test] && py.test - -svv tests', stage: build}