Skip to content

Commit b8beb0e

Browse files
committed
GitLab CI/CD: Fix test and deploy stage
Signed-off-by: Thomas <[email protected]>
1 parent 935db04 commit b8beb0e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ code_quality:
3434
test-python-package:
3535
stage: test
3636
before_script:
37-
- pipenv install --system --dev
38-
- pip install -e .
37+
- pip install uv
3938
script:
40-
- echo "Running unit tests"
41-
- pytest
39+
- tools/test-package.sh
4240
coverage: '/TOTAL.*\s+(\d+%)$/'
4341
artifacts:
4442
reports:
@@ -50,7 +48,6 @@ test-python-package:
5048
deploy-python-package:
5149
stage: deploy
5250
before_script:
53-
- pip install build twine
51+
- pip install uv
5452
script:
55-
- echo "Deploying the package..."
56-
- TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist/*
53+
- tools/deploy-package.sh

0 commit comments

Comments
 (0)