From 76007652ed288068f97c2bd55861987b89454e68 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Fri, 28 Mar 2025 18:50:31 -0300 Subject: [PATCH] Migrate CI to use uv - Replaces poetry with uv for dependency management. - Updates linting and testing scripts to use uv. - Adds build and twine steps for PyPI deployment. --- .gitlab-ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd5c241..f628e5e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,19 +6,19 @@ stages: - deploy before_script: - - pip install poetry - - poetry install --no-root + - pip install uv + - uv sync lint: stage: lint script: - - poetry run ruff check - - poetry run ruff format --check + - uv run ruff check + - uv run ruff format --check test: stage: test script: - - poetry run pytest -v --cov=. --cov-report=xml + - uv run pytest -v --cov=. --cov-report=xml after_script: - bash <(curl -s https://codecov.io/bash) artifacts: @@ -37,7 +37,9 @@ deploy_to_pypi: except: - tags script: - - POETRY_PYPI_TOKEN_PYPI=$PYPI_PASSWORD poetry publish --build + - uv add build twine + - uv run python -m build + - TWINE_USERNAME=__token__ TWINE_PASSWORD=$PYPI_PASSWORD uv run python -m twine upload dist/* deploy_to_dockerhub: stage: deploy