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
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment