Skip to content
Snippets Groups Projects
Commit 1922ac3b authored by wep23441's avatar wep23441
Browse files

testing case 3

parent 6129b3a2
Branches
No related tags found
No related merge requests found
stages:
- code_quality
- test
# - build_image
# - test_image
- build
- build_image
include:
......
......@@ -3,4 +3,4 @@ Fix the issues in the CI/CD pipeline and Python script by editing the files
within the `case-1-lint/` and and the corresponding CI jobs in `ci-configs/case-1-lint/` folders. Ensure the pipeline
runs successfully and the Python code adheres to linting and formatting standards.
!Dont forget to uncomment the corresponding case section in the `.gitlab-ci.yml`!
\ No newline at end of file
## Dont forget to uncomment the corresponding case section in the `.gitlab-ci.yml`, as well as correct stages specified!
\ No newline at end of file
......@@ -3,4 +3,4 @@ Fix the issues in the CI/CD pipeline and Python script by editing the files
within the `case-2-test/` and the corresponding CI jobs in `ci-configs/case-2-test/` folders. Ensure the pipeline
runs successfully and the Python code adheres to linting and formatting standards.
!Dont forget to uncomment the corresponding section in the `.gitlab-ci.yml`!
\ No newline at end of file
## Dont forget to uncomment the corresponding case section in the `.gitlab-ci.yml`, as well as correct stages specified!
\ No newline at end of file
......@@ -3,4 +3,4 @@ Fix the issues in the CI/CD pipeline and Python script by editing the files
within the `case-3-build/` and the corresponding CI jobs in `ci-configs/case-3-build/` folders, as well as the `Dockerfile` in the root of the repo. Ensure the pipeline
runs successfully and the Python code adheres to linting and formatting standards.
!Dont forget to uncomment the corresponding section in the `.gitlab-ci.yml`!
\ No newline at end of file
## Dont forget to uncomment the corresponding case section in the `.gitlab-ci.yml`, as well as correct stages specified!
\ No newline at end of file
build:
stage: build
image: python:3.11
image: python:3.11-slim
script:
- pip install --upgrade pip
- pip install -r ./case-3-build/requirements.txt
......
coverage:
stage: test
image: python:3.11
image: python:3.11-slim
script:
- pip install pytest pytest-cov
- pytest ./case-3-build/ --cov=case-3-build --cov-report=term --cov-fail-under=95
lint:
stage: code_quality
image: python:3.11
image: python:3.11-slim
script:
- pip install flake8 black
- flake8 ./case-3-build/
......
unit_test:
stage: test
image: python:3.11
image: python:3.11-slim
script:
- pip install -r ./case-3-build/requirements.txt
- pytest ./case-3-build/test_functions.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment