Browse Source

Setup uv using github action

tags/v0.3.10-rc3
haixuantao haixuanTao 11 months ago
parent
commit
396e6366f4
2 changed files with 7 additions and 6 deletions
  1. +5
    -1
      .github/workflows/ci.yml
  2. +2
    -5
      .github/workflows/node-hub-ci-cd.yml

+ 5
- 1
.github/workflows/ci.yml View File

@@ -174,7 +174,7 @@ jobs:
required-ros-distributions: humble
- run: 'source /opt/ros/humble/setup.bash && echo AMENT_PREFIX_PATH=${AMENT_PREFIX_PATH} >> "$GITHUB_ENV"'
- name: "Install uv for testing"
run: pip install uv
run: pip install uv pyarrow
- name: "Test"
run: cargo test -p dora-ros2-bridge-python
- name: "Rust ROS2 Bridge example"
@@ -301,6 +301,10 @@ jobs:
with:
# TODO: Support Python 3.13 when https://github.com/pytorch/pytorch/issues/130249 is fixed
python-version: "3.12"

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5

- name: "Test CLI (Python)"
timeout-minutes: 30
# fail-fast by using bash shell explictly


+ 2
- 5
.github/workflows/node-hub-ci-cd.yml View File

@@ -65,11 +65,8 @@ jobs:
with:
python-version: "3.10"

- name: Set up UV
if: runner.os == 'Linux' || github.event_name == 'workflow_dispatch' || (github.event_name == 'release' && startsWith(github.ref, 'refs/tags/'))
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5

- name: Set up Rust
if: runner.os == 'Linux' || github.event_name == 'workflow_dispatch' || (github.event_name == 'release' && startsWith(github.ref, 'refs/tags/'))


Loading…
Cancel
Save