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

Update .gitlab-ci.yml file

parent aaf87d19
Pipeline #12056 canceled with stages
...@@ -3,27 +3,34 @@ stages: ...@@ -3,27 +3,34 @@ stages:
- test - test
- run - run
#define Python version to use in all jobs image: python:3.11
image: python:3.11
before-script: before_script:
- pip install -r requirements.txt || pip install requests pytest pylint - pip install -r requirements.txt
- pip install pylint pytest
lint: lint:
stage: lint stage: lint
script: script:
- echo "Checking the Code style" - echo " Running linter..."
- pylint *.py --disable=C0114,C0115,C0116 - pylint *.py --disable=C0114,C0115,C0116
allow_failure: false
test: test:
stage: test stage: test
script: script:
- echo "Running main data_fetch script" - echo " Running pytest tests..."
- pytest -v
allow_failure: false
run:
stage: run
script:
- echo " Running main data_fetch script..."
- python data_fetch.py - python data_fetch.py
- echo "Output file generated under ./output/" - echo " Output generated under ./output/"
- find output -type f | head -10 - find output -type f | head -10
artifacts: artifacts:
paths: paths:
- output/ - output/
when: always 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