Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci-includes
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Bilke
ci-includes
Commits
61d99446
Verified
Commit
61d99446
authored
1 year ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Use extends instead of default.
parent
02ea3aad
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
CI with Python template
Pipeline
#187466
passed with warnings with stage
in 2 minutes and 13 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
python/base.yml
+2
-3
2 additions, 3 deletions
python/base.yml
python/build.yml
+2
-0
2 additions, 0 deletions
python/build.yml
python/lint.yml
+2
-0
2 additions, 0 deletions
python/lint.yml
python/test.yml
+2
-0
2 additions, 0 deletions
python/test.yml
test/python.yml
+3
-3
3 additions, 3 deletions
test/python.yml
with
11 additions
and
6 deletions
python/base.yml
+
2
−
3
View file @
61d99446
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
image
:
python:3.8
default
:
.python-default
:
image
:
python:3.8
cache
:
paths
:
-
.cache/pip
...
...
This diff is collapsed.
Click to expand it.
python/build.yml
+
2
−
0
View file @
61d99446
py_build
:
extends
:
-
.python-default
script
:
-
pyproject-build
This diff is collapsed.
Click to expand it.
python/lint.yml
+
2
−
0
View file @
61d99446
py_lint
:
extends
:
-
.python-default
script
:
-
ruff check .
This diff is collapsed.
Click to expand it.
python/test.yml
+
2
−
0
View file @
61d99446
py_tests
:
extends
:
-
.python-default
script
:
-
coverage run -m pytest
-
coverage report
...
...
This diff is collapsed.
Click to expand it.
test/python.yml
+
3
−
3
View file @
61d99446
...
...
@@ -2,7 +2,7 @@ py_build:
before_script
:
-
!reference
[
.ci-setup
,
script
]
-
cd $PROJECT_ROOT
-
!reference
[
default
,
before_script
]
-
!reference
[
.python-
default
,
before_script
]
parallel
:
matrix
:
-
PROJECT_ROOT
:
"
test/python-template"
...
...
@@ -12,7 +12,7 @@ py_tests:
before_script
:
-
!reference
[
.ci-setup
,
script
]
-
cd $PROJECT_ROOT
-
!reference
[
default
,
before_script
]
-
!reference
[
.python-
default
,
before_script
]
-
|
if [ $EXIT_CODE -eq 1 ]; then
sed -i "s/==/!=/g" tests/test_base.py
...
...
@@ -30,7 +30,7 @@ py_lint:
before_script
:
-
!reference
[
.ci-setup
,
script
]
-
cd $PROJECT_ROOT
-
!reference
[
default
,
before_script
]
-
!reference
[
.python-
default
,
before_script
]
parallel
:
matrix
:
-
PROJECT_ROOT
:
"
test/python-template"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment