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
a3e41ed9
Verified
Commit
a3e41ed9
authored
1 year ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ci] Test multiple python versions.
parent
61d99446
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
CI with Python template
Changes
2
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
+4
-3
4 additions, 3 deletions
test/python.yml
with
17 additions
and
4 deletions
python/base.yml
+
13
−
1
View file @
a3e41ed9
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
+
4
−
3
View file @
a3e41ed9
...
...
@@ -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
...
...
@@ -35,3 +35,4 @@ py_lint:
matrix
:
-
PROJECT_ROOT
:
"
test/python-template"
EXIT_CODE
:
0
PYTHON_VERSIONS
:
!reference
[
.python-versions
,
versions
]
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