From ce7b3fa8a5be9b6f1d7aaecb27c7bf659f7e9411 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Sun, 4 Dec 2022 16:27:25 +0100 Subject: [PATCH] Configured Gitlab CI for sphinx, mypy and pylint --- .gitignore | 4 ++++ .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++---- syng/__init__.py | 0 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100644 syng/__init__.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d66e7ed --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +docs/build +__pycache__ +.venv +.idea diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5231222..05c62fe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,39 @@ -code_qualityt: - image: python:3 +image: python:3-alpine + +mypy: + stage: test script: - pip install mypy --quiet + - pip install . --quiet + - mypy syng --strict + +pylint: + stage: test + script: - pip install pylint --quiet - - pip install -e . --quiet - - mypy -p syng --strict + - pip install . --quiet - pylint syng + +test: + stage: test + script: + - pip install -U sphinx + - pip install . --quiet + - sphinx-build -b html docs/source docs/build + only: + - branches + except: + - main + + +pages: + stage: deploy + script: + - pip install -U sphinx + - pip install . --quiet + - sphinx-build -b html docs/source docs/build + artifacts: + paths: + - docs/build + only: + - main diff --git a/syng/__init__.py b/syng/__init__.py new file mode 100644 index 0000000..e69de29