chore: sync files #1399
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pytest | |
on: | |
pull_request: | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest | |
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: ROSDEP install | |
run: | | |
sudo apt-get install -y python3-rosdep | |
# sudo rosdep init | |
rosdep update | |
rosdep install -i --from-paths . -y --rosdistro humble | |
- name: Install dependent packages | |
run: python3 -m pip install -r src/requirements.txt | |
- name: Get package list | |
run: | | |
dpkg -l > package_list.txt | |
python3 -m pip list > pip_list.txt | |
- name: Upload package list | |
uses: actions/upload-artifact@v3 | |
with: | |
name: package_list | |
path: | | |
package_list.txt | |
pip_list.txt | |
- name: Run pytest | |
run: | | |
. /opt/ros/humble/setup.sh | |
python3 -m pytest |