Update CI

This commit is contained in:
Fabian 2022-11-08 20:34:17 +01:00
parent e61f7a2ae6
commit f0bb35b7e7

View File

@ -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