don't install extraneous old version of pydantic in ci and make sre to run multigpu ci (#2355)
This commit is contained in:
4
.github/workflows/multi-gpu-e2e.yml
vendored
4
.github/workflows/multi-gpu-e2e.yml
vendored
@@ -4,6 +4,10 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'tests/e2e/multigpu/*.py'
|
- 'tests/e2e/multigpu/*.py'
|
||||||
|
- 'requirements.txt'
|
||||||
|
- 'setup.py'
|
||||||
|
- 'pyproject.toml'
|
||||||
|
- '.github/workflows/multi-gpu-e2e.yml'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 1,4' # Runs at 00:00 UTC every monday & thursday
|
- cron: '0 0 * * 1,4' # Runs at 00:00 UTC every monday & thursday
|
||||||
|
|||||||
@@ -37,15 +37,11 @@ temp_dir = tempfile.mkdtemp()
|
|||||||
with open(pathlib.Path(temp_dir) / "Dockerfile", "w", encoding="utf-8") as f:
|
with open(pathlib.Path(temp_dir) / "Dockerfile", "w", encoding="utf-8") as f:
|
||||||
f.write(dockerfile_contents)
|
f.write(dockerfile_contents)
|
||||||
|
|
||||||
cicd_image = (
|
cicd_image = Image.from_dockerfile(
|
||||||
Image.from_dockerfile(
|
pathlib.Path(temp_dir) / "Dockerfile",
|
||||||
pathlib.Path(temp_dir) / "Dockerfile",
|
force_build=True,
|
||||||
force_build=True,
|
gpu="A10G",
|
||||||
gpu="A10G",
|
).env(df_args)
|
||||||
)
|
|
||||||
.env(df_args)
|
|
||||||
.pip_install("fastapi==0.110.0", "pydantic==2.6.3")
|
|
||||||
)
|
|
||||||
|
|
||||||
app = App("Axolotl CI/CD", secrets=[])
|
app = App("Axolotl CI/CD", secrets=[])
|
||||||
|
|
||||||
|
|||||||
@@ -123,8 +123,6 @@ class ModalCloud(Cloud):
|
|||||||
if env := self.get_env():
|
if env := self.get_env():
|
||||||
image = image.env(env)
|
image = image.env(env)
|
||||||
|
|
||||||
image = image.pip_install("fastapi==0.110.0", "pydantic==2.6.3")
|
|
||||||
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
def get_secrets(self):
|
def get_secrets(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user