Skip to content

Commit 94cdddd

Browse files
committed
ci(motor diagrams): Fix the dependencies of the update_motor_diagrams.yml CI job
1 parent 83b2817 commit 94cdddd

1 file changed

Lines changed: 5 additions & 22 deletions

File tree

.github/workflows/update_motor_diagrams.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,15 @@ jobs:
2424
- name: Checkout MethodicConfigurator
2525
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626

27-
- name: Set up Python
28-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
27+
# https://docs.astral.sh/uv/guides/integration/github/
28+
- name: Install uv and set the Python version
29+
uses: astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # v7.1.1
2930
with:
3031
python-version: '3.x'
32+
activate-environment: true
3133

3234
- name: Install dependencies
33-
id: install_deps
34-
continue-on-error: true
35-
run: |
36-
WARNINGS=0
37-
38-
export PIP_VERSION=$(grep -oP 'pip\s*==\s*\K[0-9]+(\.[0-9]+)*' pyproject.toml || echo '')
39-
if [ -z "$PIP_VERSION" ]; then
40-
echo "::warning::Could not detect pip version in pyproject.toml; falling back to latest."
41-
PIP_INSTALL="pip"
42-
WARNINGS=1
43-
else
44-
echo "Will install pip version $PIP_VERSION."
45-
PIP_INSTALL="pip==$PIP_VERSION"
46-
fi
47-
python -m pip install "$PIP_INSTALL"
48-
49-
echo "warnings=$WARNINGS" >> $GITHUB_OUTPUT
50-
if [ "$WARNINGS" -eq 1 ]; then
51-
exit 1
52-
fi
35+
run: uv pip install .[scripts]
5336

5437
- name: Update motor diagrams
5538
run: python scripts/download_motor_diagrams.py

0 commit comments

Comments
 (0)