build: cache: key: cache paths: [.cache, .local/share/containers/] image: yourlabs/buildah script: - pip3 install -U --user -e .[cli] - CACHE_DIR=$(pwd)/.cache python3 ./shlaxfile.py build push=docker://docker.io/yourlabs/shlax:$CI_COMMIT_SHORT_SHA stage: build build-itself: cache: key: cache paths: [.cache, .local/share/containers/] image: yourlabs/shlax:$CI_COMMIT_SHORT_SHA script: python3 ./shlaxfile.py build stage: test test: image: yourlabs/python stage: build script: - pip install -U --user -e .[test] - py.test -sv tests pypi: image: yourlabs/python only: [tags] script: pypi-release stage: deploy