diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 666d36578111ca1a14d915d666fd60a57421bcb5..e62c4285babcfa0c8160cc31ff8d6e3f896dbda9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ image: python:3.10 stages: - dependencies - lint + - test download_dependencies: stage: dependencies @@ -26,3 +27,14 @@ pylint: - pip install pylint script: - pylint calculator --fail-on=error + +pytest: + stage: test + dependencies: + - download_dependencies + needs: + - download_dependencies + before_script: + - source .venv/bin/activate + script: + - pytest calculator