Fix(ci) ONC-114: reduce the ci load by only installing lmdb in tests (#14581)
reduce the ci load by only installing lmdb in tests
This commit is contained in:
parent
d2459df2ff
commit
12d4b2a5f5
|
@ -10,17 +10,13 @@ class CustomBuildConfig(BuildConfig):
|
||||||
|
|
||||||
class WorkWithCustomDeps(LightningWork):
|
class WorkWithCustomDeps(LightningWork):
|
||||||
def __init__(self, cloud_compute: CloudCompute = CloudCompute(), **kwargs):
|
def __init__(self, cloud_compute: CloudCompute = CloudCompute(), **kwargs):
|
||||||
build_config = CustomBuildConfig(requirements=["numpy", "pandas", "py"])
|
build_config = CustomBuildConfig(requirements=["py"])
|
||||||
super().__init__(parallel=True, **kwargs, cloud_compute=cloud_compute, cloud_build_config=build_config)
|
super().__init__(parallel=True, **kwargs, cloud_compute=cloud_compute, cloud_build_config=build_config)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# installed by the build commands and by requirements in the build config
|
# installed by the build commands and by requirements in the build config
|
||||||
import lmdb
|
import lmdb
|
||||||
import numpy as np
|
|
||||||
import pandas as pd
|
|
||||||
|
|
||||||
print("installed numpy version:", np.__version__)
|
|
||||||
print("installed pandas version:", pd.__version__)
|
|
||||||
print("installed lmdb version:", lmdb.__version__)
|
print("installed lmdb version:", lmdb.__version__)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue