From f0bb35b7e772d7a24344559592f8997430978c0f Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 8 Nov 2022 20:34:17 +0100 Subject: [PATCH] Update CI --- .gitlab-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c50b3f..e484686 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,9 @@ image: python:3.10 variables: PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIPENV_VENV_IN_PROJECT: 1 + UPDATE_WINDOWS_DEPS: + description: "Set to \"1\" to update windows deps" + value: "0" cache: paths: @@ -42,11 +45,15 @@ update_windows_deps: rules: - if: $CI_COMMIT_TAG when: never + - if: $UPDATE_WINDOWS_DEPS == "1" + when: always - if: $CI_COMMIT_BRANCH == "main" changes: - Pipfile - Pipfile.lock when: always + needs: + - prepare before_script: - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - choco install python --version=$PYTHON_VERSION -y --no-progress @@ -64,11 +71,11 @@ commit_windows_deps: rules: - if: $CI_COMMIT_TAG when: never + - if: $UPDATE_WINDOWS_DEPS == "1" - if: $CI_COMMIT_BRANCH == "main" changes: - Pipfile - Pipfile.lock - when: always needs: - update_windows_deps image: alpine