-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (41 loc) · 1.34 KB
/
pytest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: pytest
on:
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware:latest-devel
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install LTTng
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-add-repository ppa:lttng/stable-2.13
sudo apt-get update
sudo apt-get install -y python3-babeltrace python3-lttng python3-bt2
shell: bash
- name: Install test packages
run: |
. /opt/ros/humble/setup.sh
rosdep update
# Skip installation of packages that do not affect pytest
rosdep install -r -y --skip-keys "caret_analyze caret_msgs" --from-paths .
shell: bash
# - name: Clone dependency packages
# run: |
# mkdir -p dependency_ws
# vcs import dependency_ws < build_depends.repos
# cd dependency_ws/CARET_analyze
# export PYTHONPATH=$PWD
# echo $PYTHONPATH
# touch AMENT_IGNORE
# cd ../../
# shell: bash
- name: Install dependent packages
run: python3 -m pip install -r requirements.txt
- name: Run pytest
run: |
. /opt/ros/humble/setup.sh
python3 -m pytest