Skip to content

Commit

Permalink
refoctor: Change the method of environment configuration
Browse files Browse the repository at this point in the history
Signed-off-by: h-suzuki <[email protected]>
  • Loading branch information
h-suzuki-isp committed Oct 27, 2023
1 parent 3db519e commit b07cfe0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ jobs:
- name: Clone caret_analyze_cpp_impl
run: |
git clone https://github.com/tier4/caret_analyze_cpp_impl.git
cd caret_analyze_cpp_impl/
mv CARET_analyze_cpp_impl src
- name: Restore Cache
id: cpp_impl-cache
uses: actions/cache/restore@v3
with:
path: caret_analyze_cpp_impl/install
key: ${{ runner.os }}-node-cpp_impl-${{ hashFiles('caret_analyze_cpp_impl/src/**') }}
key: ${{ runner.os }}-node-cpp_impl-${{ hashFiles('caret_analyze_cpp_impl/CARET_analyze_cpp_impl/**') }}

- name: Build caret_analyze_cpp_impl
if: steps.cpp_impl-cache.outputs.cache-hit != 'true'
Expand All @@ -69,11 +67,12 @@ jobs:
uses: actions/cache/save@v3
with:
path: caret_analyze_cpp_impl/install
key: ${{ runner.os }}-node-cpp_impl-${{ hashFiles('caret_analyze_cpp_impl/src/**') }}
key: ${{ runner.os }}-node-cpp_impl-${{ hashFiles('caret_analyze_cpp_impl/CARET_analyze_cpp_impl/**') }}

- name: Run pytest
run: |
mv caret_analyze_cpp_impl/install /__w
export PYTHONPATH=/__w/install/caret_analyze_cpp_impl/lib/python3.10/site-packages:$PYTHONPATH
source caret_analyze_cpp_impl/install/setup.bash
. /opt/ros/humble/setup.sh
cd src
python3 -m pytest
shell: bash

0 comments on commit b07cfe0

Please sign in to comment.