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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,6 @@
|
||||
|
||||
# Ignore node_module
|
||||
**/node_modules/
|
||||
|
||||
# Ignore python stuff
|
||||
**/__pycache__
|
@@ -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}/*
|
||||
|
23
.vscode/launch.json
vendored
23
.vscode/launch.json
vendored
@@ -2,7 +2,7 @@
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Gen Valid_set",
|
||||
"name": "Gen-Manifest Valid_set",
|
||||
"cwd": "${workspaceFolder}/src",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
@@ -20,7 +20,7 @@
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "Test Valid_set",
|
||||
"name": "Test-Manifest Valid_set",
|
||||
"cwd": "${workspaceFolder}/src",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
@@ -37,5 +37,24 @@
|
||||
"<node_internals>/**"
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "Test-Images Valid_set",
|
||||
"cwd": "${workspaceFolder}/src",
|
||||
"console": "internalConsole",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"module": "pytest",
|
||||
"args": [
|
||||
"test_images.py",
|
||||
"-rA",
|
||||
"--tb=line",
|
||||
"--color=yes"
|
||||
],
|
||||
"env": {
|
||||
"ENTRY_FOLDER": "${workspaceFolder}/test",
|
||||
"PACKAGE_NAME": "valid_set"
|
||||
},
|
||||
"justMyCode": true
|
||||
},
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user