Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Stingray
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
Stingray
Commits
2263618d
Commit
2263618d
authored
9 months ago
by
Corné Lukken
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SS-1837
' into 'main'
L2SS-1837
: Goodbye stestr Closes
L2SS-1837
See merge request
!9
parents
397b73d1
8cd7ebbc
No related branches found
No related tags found
1 merge request
!9
L2SS-1837: Goodbye stestr
Pipeline
#85099
passed with warnings
9 months ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: images
Stage: integration
Pipeline: Stingray
#85100
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+1
-5
1 addition, 5 deletions
.gitlab-ci.yml
integration/__init__.py
+0
-0
0 additions, 0 deletions
integration/__init__.py
integration/test_imports.py
+21
-0
21 additions, 0 deletions
integration/test_imports.py
tox.ini
+18
-4
18 additions, 4 deletions
tox.ini
with
40 additions
and
9 deletions
.gitlab-ci.yml
+
1
−
5
View file @
2263618d
...
...
@@ -127,14 +127,10 @@ docker_build:
run_integration_tests
:
stage
:
integration
allow_failure
:
true
needs
:
-
package_files
script
:
-
echo "make sure to move out of source dir"
-
echo "install package from filesystem (or use the artefact)"
-
echo "run against foreign systems (e.g. databases, cwl etc.)"
-
exit
1
-
tox -e integration
publish_on_gitlab
:
stage
:
publish
...
...
This diff is collapsed.
Click to expand it.
tests/.gitkeep
→
integration/__init__.py
+
0
−
0
View file @
2263618d
File moved
This diff is collapsed.
Click to expand it.
integration/test_imports.py
0 → 100644
+
21
−
0
View file @
2263618d
# Copyright (C) 2024 ASTRON (Netherlands Institute for Radio Astronomy)
# SPDX-License-Identifier: Apache-2.0
"""
Testing of importing parts of installed package
"""
from
unittest
import
TestCase
# pylint: disable=import-outside-toplevel
class
ImportTest
(
TestCase
):
"""
Test cases for imports
"""
def
test_import_version
(
self
):
"""
Test importing version string
"""
try
:
from
lofar_stingray
import
__version__
except
ImportError
:
__version__
=
None
self
.
assertIsNotNone
(
__version__
)
This diff is collapsed.
Click to expand it.
tox.ini
+
18
−
4
View file @
2263618d
...
...
@@ -30,14 +30,28 @@ usedevelop = False
envdir
=
{toxworkdir}/linting
commands
=
pep8:
{envpython}
-m
flake8
--version
pep8:
{envpython}
-m
flake8
lofar_stingray
tests
pep8:
{envpython}
-m
flake8
lofar_stingray
tests
integration
black:
{envpython}
-m
black
--version
black:
{envpython}
-m
black
--check
--diff
lofar_stingray
tests
black:
{envpython}
-m
black
--check
--diff
lofar_stingray
tests
integration
pylint:
{envpython}
-m
pylint
--version
pylint:
{envpython}
-m
pylint
lofar_stingray
tests
pylint:
{envpython}
-m
pylint
lofar_stingray
tests
integration
format:
{envpython}
-m
autopep8
-v
-aa
--in-place
--recursive
lofar_stingray
format:
{envpython}
-m
autopep8
-v
-aa
--in-place
--recursive
tests
format:
{envpython}
-m
black
-v
lofar_stingray
tests
format:
{envpython}
-m
autopep8
-v
-aa
--in-place
--recursive
integration
format:
{envpython}
-m
black
-v
lofar_stingray
tests
integration
[testenv:integration]
# Do no install the lofar station client package, force packaged version install
skip_install
=
true
# Intentionally break import paths if not installed from package
changedir
=
{toxinidir}/integration
# Allow bash for wheel file substitution
allowlist_externals
=
bash
commands
=
# We need the bash substitutions here
bash
-ec
'pip
install
--force-reinstall
{toxinidir}/dist/*.whl'
{envpython}
-m
pytest
-v
--log-level
=
DEBUG ./
[testenv:docs]
deps
=
...
...
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