diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..9ca7f3d8ae63bdab1c2e790cbf1a4fefd029e430 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,28 @@ +image: 'tmaier/docker-compose:latest' +variables: + PYTHON_BASE_IMAGE: 'python:3.8.4-slim' + +stages: + - test + - build + +pytest: + image: $PYTHON_BASE_IMAGE + stage: test + script: + - 'python -m pip install --upgrade pip' + - 'python -m pip install -r requirements.txt' + - 'python -m pip install pytest' + - 'python -m pytest test' + +extract_data: + image: $PYTHON_BASE_IMAGE + stage: build + script: + - 'python -m pip install --upgrade pip' + - 'python -m pip install -r requirements.txt' + - 'python -m pip install ipython' + - 'ipython travelogues_extraction/script/script.py' + artifacts: + paths: + - 'travelogues_extraction/script/output/' diff --git a/requirements.txt b/requirements.txt index 4ecb19fd7c9889e096f8ffff957f0472f357e6f6..4f064d3c26ee64130ba1a7bfef24134da85048fb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -71,3 +71,4 @@ webencodings==0.5.1 widgetsnbextension==3.5.1 xlrd==1.2.0 zipp==3.1.0 +openpyxl==3.0.4 \ No newline at end of file diff --git a/travelogues_extraction/script/output/.gitkeep b/travelogues_extraction/script/output/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391