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

Update pipeline

parent fee9d856
No related branches found
No related tags found
No related merge requests found
Pipeline #58696 failed
image: python:3.11-bullseye
stages:
- build
- test-jobs
- test-tasks
variables:
POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry"
......@@ -7,14 +12,20 @@ cache:
paths:
- .cache/poetry
before_script:
build-env:
stage: build
script:
- pip install poetry
- poetry --version
- cd build/
- poetry install --no-root
- source $(poetry env info --path)/bin/activate
- cd ../
artifacts:
paths:
- $POETRY_CACHE_DIR/virtualenvs/
before_script:
- export VIRTUALENV_NAME=$(ls $POETRY_CACHE_DIR/virtualenvs/)
- source $POETRY_CACHE_DIR/$VIRTUALENV_NAME/bin/activate
format:
script:
......@@ -24,9 +35,14 @@ format:
- poetry run ruff . --fix
test-jobs:
stage: test-jobs
script:
- export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/jobs/src"
- poetry run pytest jobs/tests/
test-tasks:
stage: test-tasks
script:
- export PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/tasks/src"
- poetry run pytest tasks/tests/
\ No newline at end of file
......@@ -9,6 +9,8 @@ readme = "README.md"
python = ">=3.10"
numpy = "~1.24"
pytest = "^7.4.4"
pre-commit = "^3.3.1"
[build-system]
requires = ["poetry-core"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment