Commit fc75d280 authored by Somoji Rao's avatar Somoji Rao
Browse files

Update .gitlab-ci.yml file

parent aaf87d19
Pipeline #12056 canceled with stages
stages:
- lint
- test
- run
- lint
- test
- run
#define Python version to use in all jobs
image: python:3.11
image: python:3.11
before-script:
- pip install -r requirements.txt || pip install requests pytest pylint
before_script:
- pip install -r requirements.txt
- pip install pylint pytest
lint:
stage: lint
script:
- echo "Checking the Code style"
- pylint *.py --disable=C0114,C0115,C0116
lint:
stage: lint
script:
- echo " Running linter..."
- pylint *.py --disable=C0114,C0115,C0116
allow_failure: false
test:
stage: test
script:
- echo "Running main data_fetch script"
- python data_fetch.py
- echo "Output file generated under ./output/"
- find output -type f | head -10
artifacts:
paths:
- output/
when: always
test:
stage: test
script:
- echo " Running pytest tests..."
- pytest -v
allow_failure: false
run:
stage: run
script:
- echo " Running main data_fetch script..."
- python data_fetch.py
- echo " Output generated under ./output/"
- find output -type f | head -10
artifacts:
paths:
- output/
when: always
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment