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
Compare revisions
084f54fd0775893e83e9f932b19b3249b2d0b189 to a66062d85a9409cb55c3a1731ce2e026d348a370
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
bilke/ci-includes
Select target project
No results found
a66062d85a9409cb55c3a1731ce2e026d348a370
Select Git revision
Branches
main
python-template-ci
Swap
Target
bilke/ci-includes
Select target project
bilke/ci-includes
berntm/ci-includes
2 results
084f54fd0775893e83e9f932b19b3249b2d0b189
Select Git revision
Branches
main
python-template-ci
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
[ci] Test multiple python versions.
· a3e41ed9
Lars Bilke
authored
1 year ago
Verified
a3e41ed9
[ci] Test python lint failure.
· a66062d8
Lars Bilke
authored
1 year ago
Verified
a66062d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/base.yml
+13
-1
13 additions, 1 deletion
python/base.yml
test/python.yml
+11
-4
11 additions, 4 deletions
test/python.yml
with
24 additions
and
5 deletions
python/base.yml
View file @
a66062d8
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
# we test all released and supported versions
# https://devguide.python.org/versions/#supported-versions
.python-versions
:
versions
:
-
"
3.8"
-
"
3.9"
-
"
3.10"
-
"
3.11"
.python-default
:
image
:
python:
3.8
image
:
python:
$PYTHON_VERSIONS
cache
:
paths
:
-
.cache/pip
...
...
@@ -15,3 +24,6 @@ variables:
when
:
on_failure
paths
:
-
"
*.log"
parallel
:
matrix
:
-
PYTHON_VERSIONS
:
!reference
[
.python-versions
,
versions
]
This diff is collapsed.
Click to expand it.
test/python.yml
View file @
a66062d8
...
...
@@ -7,6 +7,7 @@ py_build:
matrix
:
-
PROJECT_ROOT
:
"
test/python-template"
EXIT_CODE
:
0
PYTHON_VERSIONS
:
!reference
[
.python-versions
,
versions
]
py_tests
:
before_script
:
...
...
@@ -20,9 +21,8 @@ py_tests:
parallel
:
matrix
:
-
PROJECT_ROOT
:
"
test/python-template"
EXIT_CODE
:
0
-
PROJECT_ROOT
:
"
test/python-template"
EXIT_CODE
:
1
EXIT_CODE
:
[
0
,
1
]
PYTHON_VERSIONS
:
!reference
[
.python-versions
,
versions
]
allow_failure
:
exit_codes
:
1
...
...
@@ -31,7 +31,14 @@ py_lint:
-
!reference
[
.ci-setup
,
script
]
-
cd $PROJECT_ROOT
-
!reference
[
.python-default
,
before_script
]
-
|
if [ $EXIT_CODE -eq 1 ]; then
echo "import os" >> tests/test_base.py
fi
parallel
:
matrix
:
-
PROJECT_ROOT
:
"
test/python-template"
EXIT_CODE
:
0
EXIT_CODE
:
[
0
,
1
]
PYTHON_VERSIONS
:
!reference
[
.python-versions
,
versions
]
allow_failure
:
exit_codes
:
1
This diff is collapsed.
Click to expand it.