diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 204fd33..3ba6242 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -36,8 +36,8 @@ jobs: python3 -m pip install -r uv-version.txt uv sync --frozen --no-install-project export PYTHONPATH=$(pwd) - python3 scripts/run_tests.py - python3 scripts/multi_build.py + uv run scripts/run_tests.py + uv run scripts/multi_build.py - name: Publish Artifacts uses: actions/upload-artifact@v3 with: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 48044a5..ce71f29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,8 +14,8 @@ job-build: - python3 -m pip install -r uv-version.txt --break-system-packages - uv sync --frozen --no-install-project - export PYTHONPATH=$(pwd) - - python3 scripts/run_tests.py - - python3 scripts/multi_build.py + - uv run scripts/run_tests.py + - uv run scripts/multi_build.py artifacts: paths: - "multi-build/zero-*.zip" diff --git a/Dockerfile b/Dockerfile index c0f4518..b425112 100755 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,7 @@ RUN python3 -m pip install pip --upgrade && \ # This significantly reduces the total build time, as each time we make a build call for a device, # only device-specific kernel source is being downloaded into the container. # -RUN python3 ${WDIR}/builder/utils/bridge.py --shared +RUN uv run ${WDIR}/builder/utils/bridge.py --shared # launch app CMD [ "/bin/bash" ] diff --git a/builder/engines/generic_container.py b/builder/engines/generic_container.py index f7b8acc..1c72d84 100644 --- a/builder/engines/generic_container.py +++ b/builder/engines/generic_container.py @@ -75,7 +75,7 @@ def check_cache(self) -> bool: @property def builder_cmd(self) -> str: # prepare launch command - cmd = f"python3 {Path('builder', 'utils', 'bridge.py')}" + cmd = f"uv run {Path('builder', 'utils', 'bridge.py')}" arguments = { "--command": self.command, "--codename": self.codename,