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

Update pipeline

parent 70c0f470
Branches
No related tags found
No related merge requests found
Pipeline #58693 failed
stages:
- build
- test-jobs
- test-tasks
image: python:3.11-bullseye image: python:3.11-bullseye
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache: cache:
key: "${CI_JOB_NAME}"
paths: paths:
- .cache/pip - .cache/pip
- .venv
build-env:
stage: build before_script:
- pip install poetry
- poetry --version
- cd build/
- poetry install -vv
- cd ..
format:
script: script:
- pip install poetry - poetry run pre-commit install
- poetry --version - poetry run yapf -i -r -p .
- cd build/ - poetry run ruff .
- poetry config virtualenvs.in-project true - poetry run ruff . --fix
- poetry install -vv
- cd ..
test-jobs: test-jobs:
stage: test-jobs
script: script:
- poetry run pytest jobs/tests/ - poetry run pytest jobs/tests/
test-tasks: test-tasks:
stage: test-tasks
script: script:
- poetry run pytest tasks/tests/ - poetry run pytest tasks/tests/
\ 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