Skip to content

Commit 92d2921

Browse files
Configure PyCall to use system Python in CI
Added configuration for PyCall to use system Python.
1 parent 69f9408 commit 92d2921

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test-all-distribution.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@ jobs:
150150
arch: x64
151151
- name: Cache Julia Dependencies
152152
uses: julia-actions/cache@v2
153+
- name: Configure PyCall to use system Python
154+
run: |
155+
julia --project=. -e '
156+
ENV["PYTHON"] = "/usr/bin/python${{ matrix.python }}"
157+
using Pkg
158+
Pkg.build("PyCall")
159+
'
160+
shell: bash
153161
- name: Set up ROS 2 ${{ matrix.ros }}
154162
run: |
155163
sudo apt update
@@ -165,11 +173,13 @@ jobs:
165173
- name: Run Tests
166174
run: |
167175
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
176+
export AMENT_PREFIX_PATH=/opt/ros/${{ matrix.ros_distro }}
168177
julia --project=. -e 'using Pkg; Pkg.test()'
169178
shell: bash
170179
- name: Test ROS2 Integration
171180
run: |
172181
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
182+
export AMENT_PREFIX_PATH=/opt/ros/${{ matrix.ros_distro }}
173183
julia --project=. -e '
174184
using ROS2
175185
init()

0 commit comments

Comments
 (0)