-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1019 Bytes
/
pytest.yml
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
name: pytest
on:
push:
jobs:
pytest:
name: Run tests with pytest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup ROS to use colcon commands
uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: humble
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pipenv
pipenv requirements > requirement.txt
pip install -r requirement.txt
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
colcon mixin update default
- name: Import vcs repo
run: |
mkdir src && vcs import src < ros-metrics-reporter-humble.repos
- name: Run tests
run: |
pytest -m "not local" tests/