Skip to content
Snippets Groups Projects
Commit 635c2419 authored by nguyed99's avatar nguyed99
Browse files

Update CI to deploy webpage

parent 83414517
No related branches found
No related tags found
No related merge requests found
Pipeline #58936 passed
...@@ -3,24 +3,39 @@ image: python:3.11-bullseye ...@@ -3,24 +3,39 @@ image: python:3.11-bullseye
stages: stages:
- test-jobs - test-jobs
- test-tasks - test-tasks
- build-page
before_script:
- pip install poetry
- poetry --version
- cd build/
- poetry install --no-root
- source $(poetry env info --path)/bin/activate
- cd ..
test-jobs: test-jobs:
stage: test-jobs stage: test-jobs
script: 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" - export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/jobs/src"
- poetry run pytest jobs/tests/ - poetry run pytest jobs/tests/
test-tasks: test-tasks:
stage: test-tasks stage: test-tasks
script: 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" - export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/tasks/src"
- poetry run pytest tasks/tests/ - poetry run pytest tasks/tests/
\ No newline at end of file
pages:
stage: build-page
script:
- mkdir .public
- cp -r website/* .public
artifacts:
paths:
- public
only:
- main
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment