Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TypedCols
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
Warden
TypedCols
Commits
4cdb8825
Commit
4cdb8825
authored
3 years ago
by
Rajmund Hruška
Browse files
Options
Downloads
Patches
Plain Diff
Feature: Run tests for multiple Python versions
parent
844336ea
No related branches found
No related tags found
2 merge requests
!7
Run tests for multiple Python versions
,
!6
0.1.14
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+58
-1
58 additions, 1 deletion
.gitlab-ci.yml
Makefile
+11
-11
11 additions, 11 deletions
Makefile
requirements-dev.pip
+2
-2
2 additions, 2 deletions
requirements-dev.pip
with
71 additions
and
14 deletions
.gitlab-ci.yml
+
58
−
1
View file @
4cdb8825
...
@@ -41,6 +41,42 @@ unit-test-job:
...
@@ -41,6 +41,42 @@ unit-test-job:
reports
:
reports
:
junit
:
nose2-junit.xml
junit
:
nose2-junit.xml
unit-test-2.7-job
:
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:2.7
stage
:
test
script
:
-
make test
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
:
pylint-test-job
:
stage
:
test
stage
:
test
script
:
script
:
...
@@ -58,6 +94,27 @@ check-deprecation-warnings:
...
@@ -58,6 +94,27 @@ check-deprecation-warnings:
-
"
if
[[
$(grep
DeprecationWarning
errors.log)
]];
then
cat
errors.log;
exit
1;
fi"
-
"
if
[[
$(grep
DeprecationWarning
errors.log)
]];
then
cat
errors.log;
exit
1;
fi"
allow_failure
:
true
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
:
build-job
:
stage
:
build
stage
:
build
script
:
script
:
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
11
−
11
View file @
4cdb8825
...
@@ -98,7 +98,7 @@ help:
...
@@ -98,7 +98,7 @@ help:
show-version
:
FORCE
show-version
:
FORCE
@
PYTHONPATH
=
lib python
3
-c
"import typedcols; print(typedcols.__version__);"
@
PYTHONPATH
=
lib python
-c
"import typedcols; print(typedcols.__version__);"
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
...
@@ -108,13 +108,13 @@ deps: deps-python deps-python-dev
...
@@ -108,13 +108,13 @@ deps: deps-python deps-python-dev
deps-python-dev
:
FORCE
deps-python-dev
:
FORCE
@
echo
"
\n
$(
GREEN
)
*** Installing Python development dependencies ***
$(
NC
)
\n
"
@
echo
"
\n
$(
GREEN
)
*** Installing Python development dependencies ***
$(
NC
)
\n
"
@
pip
3
--version
@
pip
--version
@
pip
3
install
-r
requirements-dev.pip
@
pip
install
-r
requirements-dev.pip
deps-python
:
FORCE
deps-python
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Installing Python dependencies ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Installing Python dependencies ***
${
NC
}
\n
"
@
echo
"
\n
This project does not have any dependencies, nothing to do here...
\n
"
@
echo
"
\n
This project does not have any dependencies, nothing to do here...
\n
"
@
#pip
3
install -r requirements.pip --upgrade
@
#pip install -r requirements.pip --upgrade
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
...
@@ -138,11 +138,11 @@ pyflakes:
...
@@ -138,11 +138,11 @@ pyflakes:
pyflakes-lib
:
FORCE
pyflakes-lib
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Checking code with pyflakes ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Checking code with pyflakes ***
${
NC
}
\n
"
-
@python
3
-m
pyflakes typedcols.py
-
@python
-m
pyflakes typedcols.py
pyflakes-test
:
FORCE
pyflakes-test
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Checking test files with pyflakes ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Checking test files with pyflakes ***
${
NC
}
\n
"
-
@python
3
-m
pyflakes test_typedcols.py
-
@python
-m
pyflakes test_typedcols.py
#pylint: pylint-lib pylint-test
#pylint: pylint-lib pylint-test
pylint
:
pylint
:
...
@@ -150,15 +150,15 @@ pylint:
...
@@ -150,15 +150,15 @@ pylint:
pylint-lib
:
FORCE
pylint-lib
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Checking code with pylint ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Checking code with pylint ***
${
NC
}
\n
"
-
@python
3
-m
pylint typedcols.py
--rcfile
.pylintrc-lib
-
@python
-m
pylint typedcols.py
--rcfile
.pylintrc-lib
pylint-test
:
FORCE
pylint-test
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Checking test files with pylint ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Checking test files with pylint ***
${
NC
}
\n
"
-
@python
3
-m
pylint test_typedcols.py
--rcfile
.pylintrc-test
-
@python
-m
pylint test_typedcols.py
--rcfile
.pylintrc-test
test
:
FORCE
test
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Checking code with nosetests ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Checking code with nosetests ***
${
NC
}
\n
"
@
python
3
-W
always::DeprecationWarning
-m
nose2
--junit-xml
@
python
-W
always::DeprecationWarning
-m
nose2
--junit-xml
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
...
@@ -172,11 +172,11 @@ archive: FORCE
...
@@ -172,11 +172,11 @@ archive: FORCE
bdist
:
FORCE
bdist
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Building Python packages ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Building Python packages ***
${
NC
}
\n
"
@
python
3
setup.py sdist bdist_wheel
--universal
@
python setup.py sdist bdist_wheel
--universal
install
:
FORCE
install
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Performing local installation ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Performing local installation ***
${
NC
}
\n
"
@
pip
3
install
dist/typedcols
*
.whl
--upgrade
@
pip
install
dist/typedcols
*
.whl
--upgrade
deploy
:
FORCE
deploy
:
FORCE
@
echo
"
\n
${
GREEN
}
*** Deploying packages to PyPI ***
${
NC
}
\n
"
@
echo
"
\n
${
GREEN
}
*** Deploying packages to PyPI ***
${
NC
}
\n
"
...
...
This diff is collapsed.
Click to expand it.
requirements-dev.pip
+
2
−
2
View file @
4cdb8825
...
@@ -3,7 +3,7 @@ wheel
...
@@ -3,7 +3,7 @@ wheel
twine
twine
docutils<0.18
docutils<0.18
nose2==0.11.0
nose2==0.11.0
pyflakes
==2.1.0
pyflakes
pylint
==2.2.2
pylint
sphinx==1.8.4
sphinx==1.8.4
sphinx-rtd-theme==0.4.2
sphinx-rtd-theme==0.4.2
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