Fixes les commandes d'execution pour python

Rends git ignorant du cache python
Fixes les commandes d'execution pour python en local
Ajoutes une commande d'execution de la CI selon la branche cicd
This commit is contained in:
2023-05-14 23:39:14 +02:00
parent f83c6b7988
commit 85803e95f1
3 changed files with 31 additions and 7 deletions

View File

@@ -16,7 +16,8 @@ variables:
image: node:latest
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
when: never
- if: CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == "cicd"
- changes:
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
script:
@@ -40,12 +41,13 @@ manifest-job/valid_set:
stage: Test
image: python:latest
rules:
- if: CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == "cicd"
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
changes:
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
script:
- pip install -U pytest pillow iteration_utilities
- python -m pytest src/test_images_job/test_wpp.py --tb=line -rA --color=yes --code-highlight=yes -q
- python -m pytest src/test_images.py --tb=line -rA
allow_failure: true
test-images-job/valid_set:
@@ -64,7 +66,7 @@ test-images-job/missing_tag_set:
image: javieraviles/zip:latest
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
@@ -91,7 +93,7 @@ bundle-job/missing_tag_set:
image: curlimages/curl:latest
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*
@@ -120,7 +122,7 @@ upload-job/missing_tag_set:
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- ${ENTRY_FOLDER}/${PACKAGE_NAME}/*