Skip to content

Commit b138de8

Browse files
committed
Add GitLab CI
Signed-off-by: Thomas <[email protected]>
1 parent a89b574 commit b138de8

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ stages:
2727
build-python-package:
2828
stage: build
2929
before_script:
30-
- pip install uv
30+
- pipx install uv
3131
script:
3232
- tools/build-package.sh
3333
artifacts:
@@ -38,7 +38,7 @@ build-python-package:
3838
build-documentation:
3939
stage: build
4040
before_script:
41-
- pip install uv
41+
- pipx install uv
4242
script:
4343
- tools/build-docs.sh
4444
artifacts:
@@ -48,7 +48,7 @@ build-documentation:
4848
test-python-package:
4949
stage: test
5050
before_script:
51-
- pip install uv
51+
- pipx install uv
5252
script:
5353
- tools/test-package.sh
5454
coverage: '/TOTAL.*\s+(\d+%)$/'
@@ -62,9 +62,7 @@ test-python-package:
6262
lint-python-package:
6363
stage: test
6464
before_script:
65-
# TODO: Add flake8-gl-codeclimate as dependency
66-
- pip install flake8-gl-codeclimate
67-
- pip install uv
65+
- pipx install uv
6866
script:
6967
- uv run --all-extras flake8 src/python_training_project --format gl-codeclimate --output-file gl-code-quality-report.json
7068
artifacts:
@@ -81,7 +79,7 @@ additional-mr-checks:
8179
deploy-python-package:
8280
stage: deploy
8381
before_script:
84-
- pip install uv
82+
- pipx install uv
8583
variables:
8684
UV_PUBLISH_URL: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi
8785
UV_PUBLISH_USERNAME: gitlab-ci-token

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ classifiers = [
2222
]
2323
dependencies = [
2424
"click",
25+
"flake8-gl-codeclimate>=0.2.1",
2526
]
2627
dynamic = ["version"]
2728

uv.lock

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)