Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use 'uv pip install' as a dropin replacement for 'pip install' #751

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 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,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
run: |
pip install uv
- name: Setup Python dependencies
shell: bash
run: |
pip install \
uv venv
source .venv/bin/activate
uv pip install \
pytest \
pytest-timeout \
tests/hil/scripts/pytest-hil \
Expand All @@ -110,6 +116,7 @@ jobs:
env:
hil_board: ${{ inputs.hil_board }}
run: |
source .venv/bin/activate
rm -rf summary
mkdir summary
rm -rf allure-reports
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/hil-integration-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,15 @@ 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
shell: bash
run: |
pip install \
uv venv
source .venv/bin/activate
uv pip install \
gcovr \
pytest \
pytest-timeout \
Expand All @@ -87,6 +93,8 @@ jobs:
env:
test: ${{ matrix.test }}
run: |
source .venv/bin/activate

rm -rf summary
mkdir summary

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/hil-integration-zephyr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
run: |
pip install uv
- name: Setup Python dependencies
shell: bash
run: |
pip install \
uv venv
source .venv/bin/activate
uv pip install \
pytest \
pytest-timeout \
tests/hil/scripts/pytest-hil \
Expand All @@ -190,6 +196,7 @@ jobs:
env:
hil_board: ${{ inputs.hil_board }}
run: |
source .venv/bin/activate
rm -rf summary
mkdir summary
rm -rf allure-reports
Expand Down
9 changes: 8 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,15 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
run: |
pip install uv
- name: Setup Python dependencies
shell: bash
run: |
pip install \
uv venv
source .venv/bin/activate
uv pip install \
pytest \
pytest-timeout \
tests/hil/scripts/pytest-hil \
Expand All @@ -166,6 +172,7 @@ jobs:
GOLIOTH_DEVICE_CERT_NAME: ${{ needs.rand_name.outputs.device_name }}
GOLIOTH_ROOT_CERTIFICATE: "golioth.crt.pem"
run: |
source .venv/bin/activate
rm -rf allure-reports
source /opt/credentials/runner_env.sh
PORT_VAR=CI_${hil_board^^}_PORT
Expand Down
Loading