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.
This commit is contained in:
parent
956524367d
commit
76007652ed
@ -6,19 +6,19 @@ stages:
|
|||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- pip install poetry
|
- pip install uv
|
||||||
- poetry install --no-root
|
- uv sync
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
script:
|
script:
|
||||||
- poetry run ruff check
|
- uv run ruff check
|
||||||
- poetry run ruff format --check
|
- uv run ruff format --check
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- poetry run pytest -v --cov=. --cov-report=xml
|
- uv run pytest -v --cov=. --cov-report=xml
|
||||||
after_script:
|
after_script:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -37,7 +37,9 @@ deploy_to_pypi:
|
|||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
script:
|
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:
|
deploy_to_dockerhub:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user