Skip to content

Commit

Permalink
ci: use 'uv pip install' as a dropin replacement for 'pip install'
Browse files Browse the repository at this point in the history
This should have particulary good speed improvement with self-hosted
runners on low cost ARM boards.

Signed-off-by: Marcin Niestroj <[email protected]>
  • Loading branch information
mniestroj committed Feb 25, 2025
1 parent 731965f commit 3a51963
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/hil-integration-esp-idf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
run: |
pip install uv
- name: Setup Python dependencies
run: |
pip install \
uv pip install --system \
pytest \
pytest-timeout \
tests/hil/scripts/pytest-hil \
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/hil-integration-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ jobs:
cmake -B build -S tests/hil/platform/linux \
$EXTRA_BUILD_ARGS -DGOLIOTH_HIL_TEST=${{ matrix.test }}
make -j$(nproc) -C build
- name: Install uv
run: |
pip install uv
- name: Setup Python dependencies
run: |
pip install \
uv pip install --system \
gcovr \
pytest \
pytest-timeout \
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/hil-integration-zephyr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
run: |
pip install uv
- name: Setup Python dependencies
run: |
pip install \
uv pip install --system \
pytest \
pytest-timeout \
tests/hil/scripts/pytest-hil \
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/hil-sample-esp-idf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
run: |
pip install uv
- name: Setup Python dependencies
run: |
pip install \
uv pip install --system \
pytest \
pytest-timeout \
tests/hil/scripts/pytest-hil \
Expand Down

0 comments on commit 3a51963

Please sign in to comment.