Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
9a84b61d
Unverified
Commit
9a84b61d
authored
Jul 20, 2023
by
James Lamb
Committed by
GitHub
Jul 20, 2023
Browse files
[ci] use newer h5py in AppVeyor jobs (fixes #5995) (#5996)
parent
8b1ab4f0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.ci/test_windows.ps1
.ci/test_windows.ps1
+1
-1
R-package/tests/testthat/test_dataset.R
R-package/tests/testthat/test_dataset.R
+1
-1
No files found.
.ci/test_windows.ps1
View file @
9a84b61d
...
@@ -124,7 +124,7 @@ if (($env:TASK -eq "regular") -or (($env:APPVEYOR -eq "true") -and ($env:TASK -e
...
@@ -124,7 +124,7 @@ if (($env:TASK -eq "regular") -or (($env:APPVEYOR -eq "true") -and ($env:TASK -e
cd
$
env
:
BUILD_SOURCESDIRECTORY
/examples/python-guide
cd
$
env
:
BUILD_SOURCESDIRECTORY
/examples/python-guide
@(
"import matplotlib"
,
"matplotlib.use('Agg')"
)
+
(
Get-Content
"plot_example.py"
)
|
Set-Content
"plot_example.py"
@(
"import matplotlib"
,
"matplotlib.use('Agg')"
)
+
(
Get-Content
"plot_example.py"
)
|
Set-Content
"plot_example.py"
(
Get-Content
"plot_example.py"
)
.
replace
(
'graph.render(view=True)'
,
'graph.render(view=False)'
)
|
Set-Content
"plot_example.py"
# prevent interactive window mode
(
Get-Content
"plot_example.py"
)
.
replace
(
'graph.render(view=True)'
,
'graph.render(view=False)'
)
|
Set-Content
"plot_example.py"
# prevent interactive window mode
conda
install
-q
-y
-n
$
env
:
CONDA_ENV
h5py
ipywidgets
notebook
conda
install
-q
-y
-n
$
env
:
CONDA_ENV
"
h5py
>3.0"
ipywidgets
notebook
foreach
(
$file
in
@(
Get-ChildItem
*.py
))
{
foreach
(
$file
in
@(
Get-ChildItem
*.py
))
{
@(
"import sys, warnings"
,
"warnings.showwarning = lambda message, category, filename, lineno, file=None, line=None: sys.stdout.write(warnings.formatwarning(message, category, filename, lineno, line))"
)
+
(
Get-Content
$file
)
|
Set-Content
$file
@(
"import sys, warnings"
,
"warnings.showwarning = lambda message, category, filename, lineno, file=None, line=None: sys.stdout.write(warnings.formatwarning(message, category, filename, lineno, line))"
)
+
(
Get-Content
$file
)
|
Set-Content
$file
python
$file
;
Check-Output
$?
python
$file
;
Check-Output
$?
...
...
R-package/tests/testthat/test_dataset.R
View file @
9a84b61d
...
@@ -446,7 +446,7 @@ test_that("lgb.Dataset: should be able to use and retrieve long feature names",
...
@@ -446,7 +446,7 @@ test_that("lgb.Dataset: should be able to use and retrieve long feature names",
# set one feature to a value longer than the default buffer size used
# set one feature to a value longer than the default buffer size used
# in LGBM_DatasetGetFeatureNames_R
# in LGBM_DatasetGetFeatureNames_R
feature_names
<-
names
(
iris
)
feature_names
<-
names
(
iris
)
long_name
<-
paste0
(
rep
(
"a"
,
1000L
)
,
collapse
=
""
)
long_name
<-
str
rep
(
"a"
,
1000L
)
feature_names
[
1L
]
<-
long_name
feature_names
[
1L
]
<-
long_name
names
(
iris
)
<-
feature_names
names
(
iris
)
<-
feature_names
# check that feature name survived the trip from R to C++ and back
# check that feature name survived the trip from R to C++ and back
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment