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

Update pipeline

parent e8e7eba6
No related branches found
No related tags found
No related merge requests found
Pipeline #58709 passed
......@@ -2,7 +2,6 @@ image: python:3.11-bullseye
stages:
- build
- format
- test-jobs
- test-tasks
......@@ -21,23 +20,11 @@ build-env:
- cd build/
- poetry config virtualenvs.in-project true
- poetry install --no-root
- poetry run pip install poetry
# - poetry run pip install poetry
artifacts:
paths:
- $POETRY_CACHE_DIR/virtualenvs/
format:
stage: format
script:
- export VIRTUALENV_NAME=$(ls $POETRY_CACHE_DIR/virtualenvs)
- echo $VIRTUALENV_NAME
- source $POETRY_CACHE_DIR/virtualenvs/$VIRTUALENV_NAME/bin/activate
- which poetry # Check if poetry is in the PATH
- poetry run pre-commit install
- poetry run yapf -i -r -p .
- poetry run ruff .
- poetry run ruff . --fix
test-jobs:
stage: test-jobs
script:
......
......@@ -9,8 +9,6 @@ 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