Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
MLAir
Commits
13f8c0ec
Commit
13f8c0ec
authored
5 years ago
by
lukas leufen
Browse files
Options
Downloads
Patches
Plain Diff
changed name for CI test results (was naming duplication with standard python test folder)
parent
f02f6f8f
No related branches found
No related tags found
2 merge requests
!17
update to v0.4.0
,
!16
handle station type
Pipeline
#26593
passed
5 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yml
CI/run_pytest.sh
+6
-6
6 additions, 6 deletions
CI/run_pytest.sh
src/data_preparation.py
+1
-1
1 addition, 1 deletion
src/data_preparation.py
test/test_data_preparation.py
+1
-1
1 addition, 1 deletion
test/test_data_preparation.py
with
11 additions
and
11 deletions
.gitlab-ci.yml
+
3
−
3
View file @
13f8c0ec
...
...
@@ -47,7 +47,7 @@ tests:
when
:
always
paths
:
-
badges/
-
test/
-
test
_results
/
coverage
:
tags
:
...
...
@@ -90,7 +90,7 @@ pages:
-
cp -af coverage/. public/coverage
-
ls public/coverage
-
mkdir -p public/test
-
cp -af test/. public/test
-
cp -af test
_results
/. public/test
-
ls public/test
-
ls public
when
:
always
...
...
@@ -101,7 +101,7 @@ pages:
-
public
-
badges/
-
coverage/
-
test/
-
test
_results
/
cache
:
key
:
old-pages
paths
:
...
...
This diff is collapsed.
Click to expand it.
CI/run_pytest.sh
+
6
−
6
View file @
13f8c0ec
...
...
@@ -6,14 +6,14 @@ python3 -m pytest --html=report.html --self-contained-html test/ | tee test_resu
IS_FAILED
=
$?
# move html test report
mkdir test
/
mkdir
test
_results
/
BRANCH_NAME
=
$(
echo
-e
"
${
CI_COMMIT_REF_NAME
////_
}
"
)
mkdir test
/
${
BRANCH_NAME
}
mkdir test
/recent
cp
report.html
test
/
${
BRANCH_NAME
}
/.
cp
report.html
test
/recent/.
mkdir
test
_results
/
${
BRANCH_NAME
}
mkdir
test
_results
/recent
cp
report.html test
_results
/
${
BRANCH_NAME
}
/.
cp
report.html test
_results
/recent/.
if
[[
"
${
CI_COMMIT_REF_NAME
}
"
=
"master"
]]
;
then
cp
-r
report.html
test
/.
cp
-r
report.html test
_results
/.
fi
# exit 0 if no tests implemented
...
...
This diff is collapsed.
Click to expand it.
src/data_preparation.py
+
1
−
1
View file @
13f8c0ec
...
...
@@ -124,7 +124,7 @@ class DataPrep(object):
def
__repr__
(
self
):
return
f
"
Dataprep(path=
'
{
self
.
path
}
'
, network=
'
{
self
.
network
}
'
, station=
{
self
.
station
}
,
"
\
f
"
variables=
{
self
.
variables
}
, station_type=
'
{
self
.
station_type
}
'
, **
{
self
.
kwargs
}
)
"
f
"
variables=
{
self
.
variables
}
, station_type=
{
self
.
station_type
}
, **
{
self
.
kwargs
}
)
"
def
interpolate
(
self
,
dim
:
str
,
method
:
str
=
'
linear
'
,
limit
:
int
=
None
,
use_coordinate
:
Union
[
bool
,
str
]
=
True
,
**
kwargs
):
...
...
This diff is collapsed.
Click to expand it.
test/test_data_preparation.py
+
1
−
1
View file @
13f8c0ec
...
...
@@ -38,7 +38,7 @@ class TestDataPrep:
d
.
station_type
=
"
traffic
"
d
.
kwargs
=
None
assert
d
.
__repr__
().
rstrip
()
==
"
Dataprep(path=
'
data/test
'
, network=
'
dummy
'
, station=[
'
DEBW107
'
],
"
\
"
variables=[
'
o3
'
,
'
temp
'
], station_type=
'
traffic
'
, **None)
"
.
rstrip
()
"
variables=[
'
o3
'
,
'
temp
'
], station_type=traffic, **None)
"
.
rstrip
()
def
test_set_file_name_and_meta
(
self
):
d
=
object
.
__new__
(
DataPrep
)
...
...
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