Initial public ModelForge release
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
$PSNativeCommandUseErrorActionPreference = $true
|
||||
|
||||
Push-Location backend
|
||||
try {
|
||||
python -m compileall -q src tests
|
||||
python -m ruff check src tests
|
||||
python -m mypy src
|
||||
python -m pytest -q
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Push-Location frontend
|
||||
try {
|
||||
npm test
|
||||
npm run build
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Push-Location node-agent
|
||||
try {
|
||||
python -m compileall -q src tests
|
||||
python -m ruff check src tests
|
||||
python -m mypy src
|
||||
python -m pytest -q
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Push-Location runtime-worker
|
||||
try {
|
||||
python -m compileall -q src tests
|
||||
python -m ruff check src tests
|
||||
python -m mypy src
|
||||
python -m pytest -q
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
docker compose --env-file .env.example config --quiet
|
||||
docker compose --env-file .env.example -f docker-compose.yml -f docker-compose.gpu.yml config --quiet
|
||||
docker compose --env-file .env.example -f docker-compose.node-agent.yml config --quiet
|
||||
docker compose --env-file .env.example -f docker-compose.node-agent.yml -f docker-compose.runtime-worker.yml config --quiet
|
||||
$env:MODELFORGE_AGENT_CA_CERT_PATH = "./validation-ca.crt"
|
||||
$env:MODELFORGE_AGENT_CONTROL_PLANE_HOST_ADDRESS = "192.0.2.10"
|
||||
try {
|
||||
docker compose --env-file .env.example -f docker-compose.node-agent.yml -f docker-compose.node-agent.private-ca.yml config --quiet
|
||||
docker compose --env-file .env.example -f docker-compose.node-agent.yml -f docker-compose.node-agent.private-ca.yml -f docker-compose.runtime-worker.yml -f docker-compose.runtime-worker.private-ca.yml config --quiet
|
||||
} finally {
|
||||
Remove-Item Env:MODELFORGE_AGENT_CA_CERT_PATH
|
||||
Remove-Item Env:MODELFORGE_AGENT_CONTROL_PLANE_HOST_ADDRESS
|
||||
}
|
||||
Write-Host "M5 checks passed."
|
||||
Reference in New Issue
Block a user