mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 00:05:57 +08:00
switch to uv (#32853)
* switch to uv * pin back numpy * remove lock * try without cache * test with no cache * no cache for all * debug * remove debug * remove pygame dep * Update README.md * remove lower bound * update repo maintenance job * upgradable * repo maintenance * copy poetry api * build system * unpin pygame * readd cache * readd cache * basic command * lower delay * macos * fix authors * macos fix * use uv * preview * other way * new metadrive * uv sync * cp lock in docker * fix docker * use hatchling * fix devcontainer * fix container * path * uv run * cleanup * pre-commit * format * release_file old-commit-hash: 12d5afba731b193b6992304c9e31b87603602ae6
This commit is contained in:
@@ -53,10 +53,8 @@ jobs:
|
||||
python-version: '3.11.4'
|
||||
- name: Installing pip
|
||||
run: pip install pip==24.0
|
||||
- name: Installing poetry
|
||||
run: pip install poetry==1.7.0
|
||||
- name: Installing python dependencies
|
||||
run: poetry install --no-cache --no-root
|
||||
- name: Installing uv
|
||||
run: pip install uv
|
||||
- name: git LFS
|
||||
run: git lfs pull
|
||||
- run: echo "CACHE_COMMIT_DATE=$(git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d-%H:%M')" >> $GITHUB_ENV
|
||||
@@ -69,7 +67,7 @@ jobs:
|
||||
scons-${{ runner.arch }}-ubuntu2004-${{ env.CACHE_COMMIT_DATE }}
|
||||
scons-${{ runner.arch }}-ubuntu2004
|
||||
- name: Building openpilot
|
||||
run: poetry run scons -u -j$(nproc)
|
||||
run: uv run scons -u -j$(nproc)
|
||||
- name: Saving scons cache
|
||||
uses: actions/cache/save@v4
|
||||
if: github.ref == 'refs/heads/master'
|
||||
@@ -100,6 +98,6 @@ jobs:
|
||||
- name: Test environment
|
||||
run: |
|
||||
devcontainer exec --workspace-folder . scons -j$(nproc) cereal/ common/
|
||||
devcontainer exec --workspace-folder . pip install pip-install-test
|
||||
devcontainer exec --workspace-folder . pip3 install pip-install-test
|
||||
devcontainer exec --workspace-folder . touch /home/batman/.comma/auth.json
|
||||
devcontainer exec --workspace-folder . sudo touch /root/test.txt
|
||||
|
||||
Reference in New Issue
Block a user