Fix cache dir; no cache on the deploy and verify deploy steps
This commit is contained in:
@@ -13,7 +13,7 @@ variables:
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .cache/pip
|
- .venv/
|
||||||
|
|
||||||
image: registry.gitlab.com/sumner/sublime-music/python-build:latest
|
image: registry.gitlab.com/sumner/sublime-music/python-build:latest
|
||||||
|
|
||||||
@@ -81,6 +81,7 @@ pages:
|
|||||||
deploy_pypi:
|
deploy_pypi:
|
||||||
image: python:3.8-alpine
|
image: python:3.8-alpine
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
cache: {}
|
||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
# Only do a deploy if it's a version tag.
|
# Only do a deploy if it's a version tag.
|
||||||
@@ -98,6 +99,7 @@ deploy_pypi:
|
|||||||
|
|
||||||
verify_deploy:
|
verify_deploy:
|
||||||
stage: verify
|
stage: verify
|
||||||
|
cache: {}
|
||||||
only:
|
only:
|
||||||
variables:
|
variables:
|
||||||
# Only verify the deploy if it's a version tag.
|
# Only verify the deploy if it's a version tag.
|
||||||
|
@@ -3,4 +3,5 @@ export PYENV_ROOT="${HOME}/.pyenv"
|
|||||||
export PATH="${PYENV_ROOT}/bin:$PATH"
|
export PATH="${PYENV_ROOT}/bin:$PATH"
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
|
|
||||||
|
export PIPENV_VENV_IN_PROJECT=1
|
||||||
pipenv install --dev
|
pipenv install --dev
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
extend-ignore = E203, E402, E722, W503, ANN002, ANN003, ANN101, ANN102, ANN204
|
extend-ignore = E203, E402, E722, W503, ANN002, ANN003, ANN101, ANN102, ANN204
|
||||||
exclude = .git,__pycache__,build,dist,flatpak
|
exclude = .git,__pycache__,build,dist,flatpak,.venv
|
||||||
max-line-length = 88
|
max-line-length = 88
|
||||||
suppress-none-returning = True
|
suppress-none-returning = True
|
||||||
suppress-dummy-args = True
|
suppress-dummy-args = True
|
||||||
|
Reference in New Issue
Block a user