Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pydgets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Pydgets
Commits
3c9185df
Commit
3c9185df
authored
3 years ago
by
Rajmund Hruška
Browse files
Options
Downloads
Patches
Plain Diff
Feature: Run tests in multiple Python versions
parent
7fa5b014
No related branches found
No related tags found
1 merge request
!4
Use multiple python versions for testing
Pipeline
#1846
canceled
3 years ago
Stage: test
Stage: check-warnings
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+52
-1
52 additions, 1 deletion
.gitlab-ci.yml
with
52 additions
and
1 deletion
.gitlab-ci.yml
+
52
−
1
View file @
3c9185df
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:
3.6
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:
latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
...
...
@@ -41,6 +41,36 @@ unit-test-job:
reports
:
junit
:
nose2-junit.xml
unit-test-3.7-job
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.7
stage
:
test
script
:
-
make test 2>&1 | tee errors-3.7.log
artifacts
:
when
:
always
paths
:
-
errors-3.7.log
unit-test-3.8-job
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.8
stage
:
test
script
:
-
make test 2>&1 | tee errors-3.8.log
artifacts
:
when
:
always
paths
:
-
errors-3.8.log
unit-test-3.9-job
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.9
stage
:
test
script
:
-
make test 2>&1 | tee errors-3.9.log
artifacts
:
when
:
always
paths
:
-
errors-3.9.log
pylint-test-job
:
stage
:
test
script
:
...
...
@@ -58,6 +88,27 @@ check-deprecation-warnings:
-
"
if
[[
$(grep
DeprecationWarning
errors.log)
]];
then
cat
errors.log;
exit
1;
fi"
allow_failure
:
true
check-deprecation-warnings-3.7
:
before_script
:
[]
stage
:
check-warnings
script
:
-
"
if
[[
$(grep
DeprecationWarning
errors-3.7.log)
]];
then
cat
errors-3.7.log;
exit
1;
fi"
allow_failure
:
true
check-deprecation-warnings-3.8
:
before_script
:
[]
stage
:
check-warnings
script
:
-
"
if
[[
$(grep
DeprecationWarning
errors-3.8.log)
]];
then
cat
errors-3.8.log;
exit
1;
fi"
allow_failure
:
true
check-deprecation-warnings-3.9
:
before_script
:
[]
stage
:
check-warnings
script
:
-
"
if
[[
$(grep
DeprecationWarning
errors-3.9.log)
]];
then
cat
errors-3.9.log;
exit
1;
fi"
allow_failure
:
true
build-job
:
stage
:
build
script
:
...
...
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