diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbf169a20f4dca13e6fed47b34cb02c4b7020bc9..dd4017fe923b7a11da2b0ae2ff4cea77ef436cdd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,8 @@ before_script: stages: - prepare - - docs + - lint - test - - report - clean @@ -20,7 +19,13 @@ prepare: - conda create -n autosubmit_api python=3.9 - conda install -n autosubmit_api graphviz pytest pytest-cov pytest-mock - conda activate autosubmit_api - - pip install . + - pip install .[all] + +lint: + stage: lint + script: + - conda activate autosubmit_api + - ruff check . test_python3: stage: test @@ -48,6 +53,7 @@ test_python3: # - make html + clean: stage: clean script: diff --git a/setup.py b/setup.py index 7ab919bf27719a5240b7eae838d56af1b083314b..8d83ad370c5beb3a86fb59e3b9c8ae291f114974 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,8 @@ install_requires = [ # Test dependencies test_requires = [ "pytest", - "pytest-cov" + "pytest-cov", + "ruff" ] extras_require = {