Skip to content
Open
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ variables:
CACHE_VERSION: "v4"
GLOBAL_DOCKER_IMAGE: "cimg/python:3.10-node"
VERSION_TAG_REGEX: "/^v\\d+\\.\\d+\\.\\d+$/" # version regex vx.x.x (i.e. v1.2.3)

CURRENT_BRANCH_NAME: "added_security_checks_to_parse_emails_repo"
stages:
- test
- deploy
- security
- fan-in
- notify

.default:
image: $GLOBAL_DOCKER_IMAGE
Expand All @@ -24,6 +27,9 @@ run-unit-tests:
script:
- poetry install
- poetry run pytest -p no:warnings -v --cov=parse_emails --cov-report=html
rules:
- if: '$SECURITY_SCANS == "true"'
when: never
artifacts:
paths:
- integration-test-results
Expand All @@ -48,6 +54,9 @@ precommit-checks:
- poetry run pre-commit --version
- poetry run pre-commit run -a
- poetry run pytest --collect-only .
rules:
- if: '$SECURITY_SCANS == "true"'
when: never
cache:
key: v1-pc-cache-${CI_COMMIT_SHA}
paths:
Expand All @@ -58,6 +67,9 @@ build:
extends: .default
script:
- poetry build
rules:
- if: '$SECURITY_SCANS == "true"'
when: never
artifacts:
paths:
- dist
Expand All @@ -70,7 +82,23 @@ deploy:
rules:
- if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/'
when: manual
- if: '$SECURITY_SCANS == "true"'
when: never
dependencies:
- run-unit-tests
- precommit-checks
- build

include:
- file: "/.gitlab/ci/.gitlab-ci.security-scans.yml"
ref: "added_security_checks_to_parse_emails_repo"
project: "${CI_PROJECT_NAMESPACE}/infra"
- file: "/.gitlab/ci/global.yml"
ref: "added_security_checks_to_parse_emails_repo"
project: "${CI_PROJECT_NAMESPACE}/infra"
- file: "/.gitlab/ci/variables.yml"
ref: "added_security_checks_to_parse_emails_repo"
project: "${CI_PROJECT_NAMESPACE}/infra"
- file: "/.gitlab/ci/slack-notify.yml"
Copy link
Contributor

@michal-dagan michal-dagan Apr 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try to delete the slack-notify file from here and remove the notify stage

ref: "added_security_checks_to_parse_emails_repo"
project: "${CI_PROJECT_NAMESPACE}/infra"