Skip to content

Commit e6af3a9

Browse files
authored
Merge branch 'main' into user/pepijn/2025_01_27_steps_assembly_intructions
2 parents b5bc3d1 + 8a64d82 commit e6af3a9

File tree

605 files changed

+7755
-15285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

605 files changed

+7755
-15285
lines changed

.dockerignore

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Misc
216
.git
317
tmp

.gitattributes

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
*.memmap filter=lfs diff=lfs merge=lfs -text
216
*.stl filter=lfs diff=lfs merge=lfs -text
317
*.safetensors filter=lfs diff=lfs merge=lfs -text

.github/ISSUE_TEMPLATE/bug-report.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: "\U0001F41B Bug Report"
216
description: Submit a bug report to help us improve LeRobot
317
body:

.github/workflows/build-docker-images.yml

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Inspired by
216
# https://github.com/huggingface/peft/blob/main/.github/workflows/build_docker_images.yml
317
name: Builds
@@ -8,6 +22,8 @@ on:
822
schedule:
923
- cron: "0 1 * * *"
1024

25+
permissions: {}
26+
1127
env:
1228
PYTHON_VERSION: "3.10"
1329

@@ -25,11 +41,14 @@ jobs:
2541
2642
- name: Set up Docker Buildx
2743
uses: docker/setup-buildx-action@v3
44+
with:
45+
cache-binary: false
2846

2947
- name: Check out code
3048
uses: actions/checkout@v4
3149
with:
3250
lfs: true
51+
persist-credentials: false
3352

3453
- name: Login to DockerHub
3554
uses: docker/login-action@v3
@@ -60,11 +79,14 @@ jobs:
6079
6180
- name: Set up Docker Buildx
6281
uses: docker/setup-buildx-action@v3
82+
with:
83+
cache-binary: false
6384

6485
- name: Check out code
6586
uses: actions/checkout@v4
6687
with:
6788
lfs: true
89+
persist-credentials: false
6890

6991
- name: Login to DockerHub
7092
uses: docker/login-action@v3
@@ -89,9 +111,13 @@ jobs:
89111
steps:
90112
- name: Set up Docker Buildx
91113
uses: docker/setup-buildx-action@v3
114+
with:
115+
cache-binary: false
92116

93117
- name: Check out code
94118
uses: actions/checkout@v4
119+
with:
120+
persist-credentials: false
95121

96122
- name: Login to DockerHub
97123
uses: docker/login-action@v3

.github/workflows/nightly-tests.yml

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Inspired by
216
# https://github.com/huggingface/peft/blob/main/.github/workflows/nightly.yml
317
name: Nightly
@@ -7,6 +21,8 @@ on:
721
schedule:
822
- cron: "0 2 * * *"
923

24+
permissions: {}
25+
1026
# env:
1127
# SLACK_API_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
1228
jobs:

.github/workflows/quality.yml

+31-43
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: Quality
216

317
on:
418
workflow_dispatch:
519
workflow_call:
620
pull_request:
7-
branches:
8-
- main
921
push:
1022
branches:
1123
- main
1224

25+
permissions: {}
26+
1327
env:
1428
PYTHON_VERSION: "3.10"
1529

@@ -19,7 +33,9 @@ jobs:
1933
runs-on: ubuntu-latest
2034
steps:
2135
- name: Checkout Repository
22-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
37+
with:
38+
persist-credentials: false
2339

2440
- name: Set up Python
2541
uses: actions/setup-python@v4
@@ -30,55 +46,27 @@ jobs:
3046
id: get-ruff-version
3147
run: |
3248
RUFF_VERSION=$(awk '/repo: https:\/\/github.com\/astral-sh\/ruff-pre-commit/{flag=1;next}/rev:/{if(flag){print $2;exit}}' .pre-commit-config.yaml)
33-
echo "RUFF_VERSION=${RUFF_VERSION}" >> $GITHUB_ENV
49+
echo "ruff_version=${RUFF_VERSION}" >> $GITHUB_OUTPUT
3450
3551
- name: Install Ruff
36-
run: python -m pip install "ruff==${{ env.RUFF_VERSION }}"
52+
env:
53+
RUFF_VERSION: ${{ steps.get-ruff-version.outputs.ruff_version }}
54+
run: python -m pip install "ruff==${RUFF_VERSION}"
3755

3856
- name: Ruff check
39-
run: ruff check
57+
run: ruff check --output-format=github
4058

4159
- name: Ruff format
4260
run: ruff format --diff
4361

44-
45-
poetry_check:
46-
name: Poetry check
62+
typos:
63+
name: Typos
4764
runs-on: ubuntu-latest
4865
steps:
4966
- name: Checkout Repository
50-
uses: actions/checkout@v3
51-
52-
- name: Install poetry
53-
run: pipx install "poetry<2.0.0"
54-
55-
- name: Poetry check
56-
run: poetry check
57-
58-
59-
poetry_relax:
60-
name: Poetry relax
61-
runs-on: ubuntu-latest
62-
steps:
63-
- name: Checkout Repository
64-
uses: actions/checkout@v3
65-
66-
- name: Install poetry
67-
run: pipx install "poetry<2.0.0"
68-
69-
- name: Install poetry-relax
70-
run: poetry self add poetry-relax
67+
uses: actions/checkout@v4
68+
with:
69+
persist-credentials: false
7170

72-
- name: Poetry relax
73-
id: poetry_relax
74-
run: |
75-
output=$(poetry relax --check 2>&1)
76-
if echo "$output" | grep -q "Proposing updates"; then
77-
echo "$output"
78-
echo ""
79-
echo "Some dependencies have caret '^' version requirement added by poetry by default."
80-
echo "Please replace them with '>='. You can do this by hand or use poetry-relax to do this."
81-
exit 1
82-
else
83-
echo "$output"
84-
fi
71+
- name: typos-action
72+
uses: crate-ci/typos@v1.29.10

.github/workflows/test-docker-build.yml

+24-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
1+
# Copyright 2024 The HuggingFace Inc. team. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Inspired by
216
# https://github.com/huggingface/peft/blob/main/.github/workflows/test-docker-build.yml
317
name: Test Dockerfiles
418

519
on:
620
pull_request:
7-
branches:
8-
- main
921
paths:
1022
# Run only when DockerFile files are modified
1123
- "docker/**"
1224

25+
permissions: {}
26+
1327
env:
1428
PYTHON_VERSION: "3.10"
1529

@@ -22,6 +36,8 @@ jobs:
2236
steps:
2337
- name: Check out code
2438
uses: actions/checkout@v4
39+
with:
40+
persist-credentials: false
2541

2642
- name: Get changed files
2743
id: changed-files
@@ -30,31 +46,32 @@ jobs:
3046
files: docker/**
3147
json: "true"
3248

33-
- name: Run step if only the files listed above change
49+
- name: Run step if only the files listed above change # zizmor: ignore[template-injection]
3450
if: steps.changed-files.outputs.any_changed == 'true'
3551
id: set-matrix
36-
env:
37-
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
3852
run: |
3953
echo "matrix=${{ steps.changed-files.outputs.all_changed_files}}" >> $GITHUB_OUTPUT
4054
41-
4255
build_modified_dockerfiles:
4356
name: Build modified Docker images
4457
needs: get_changed_files
4558
runs-on:
4659
group: aws-general-8-plus
47-
if: ${{ needs.get_changed_files.outputs.matrix }} != ''
60+
if: needs.get_changed_files.outputs.matrix != ''
4861
strategy:
4962
fail-fast: false
5063
matrix:
5164
docker-file: ${{ fromJson(needs.get_changed_files.outputs.matrix) }}
5265
steps:
5366
- name: Set up Docker Buildx
5467
uses: docker/setup-buildx-action@v3
68+
with:
69+
cache-binary: false
5570

5671
- name: Check out code
5772
uses: actions/checkout@v4
73+
with:
74+
persist-credentials: false
5875

5976
- name: Build Docker image
6077
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)