diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c9ffaa405b1493f30974d701f18c54abb677961b..bc0df3ba339a9a5d72d0d598515a48606ffef792 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,24 +3,39 @@ image: python:3.11-bullseye stages: - test-jobs - test-tasks - -before_script: - - pip install poetry - - poetry --version - - cd build/ - - poetry install --no-root - - source $(poetry env info --path)/bin/activate - - cd .. - + - build-page test-jobs: stage: test-jobs script: + - pip install poetry + - poetry --version + - cd build/ + - poetry install --no-root + - source $(poetry env info --path)/bin/activate + - cd .. - export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/jobs/src" - poetry run pytest jobs/tests/ test-tasks: stage: test-tasks script: + - pip install poetry + - poetry --version + - cd build/ + - poetry install --no-root + - source $(poetry env info --path)/bin/activate + - cd .. - export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/tasks/src" - - poetry run pytest tasks/tests/ \ No newline at end of file + - poetry run pytest tasks/tests/ + +pages: + stage: build-page + script: + - mkdir .public + - cp -r website/* .public + artifacts: + paths: + - public + only: + - main \ No newline at end of file