diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..2a9b9b98950fe7379c97d2ad6361f9db688798e2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,36 @@ +stages: + - lint + - test + - run + +image: python:3.11 + +before_script: + - pip install -r requirements.txt + - pip install pylint pytest + +lint: + stage: lint + script: + - echo " Running linter..." + - pylint *.py --disable=C0114,C0115,C0116 + allow_failure: false + +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 diff --git a/__init__.py b/__init__.py index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..8b137891791fe96927ad78e64b0aad7bded08bdc 100644 --- a/__init__.py +++ b/__init__.py @@ -0,0 +1 @@ +