Skip to content

Commit fc14aa9

Browse files
committed
added actions for python testing
1 parent 904e112 commit fc14aa9

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/python-tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
3+
name: Python testing
4+
5+
on:
6+
push:
7+
branches: [ "feature/2_semantic_python" ]
8+
# pull_request:
9+
# branches: [ "main" ]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python 3.8
22+
uses: actions/setup-python@v3
23+
with:
24+
python-version: "3.8"
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest cupy
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
- name: Test with pytest
31+
run: |
32+
cd elevation_mapping_cupy/script/elevation_mapping_cupy/tests/
33+
pytest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Elevation Mapping cupy
22

3+
![python tests](https://github.com/leggedrobotics/elevation_mapping_semantic_cupy/actions/workflows/python-tests.yml/badge.svg)
34
## Overview
45

56
This is a ROS package for elevation mapping on GPU. The elevation mapping code is written in python and uses cupy for GPU computation. The

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ scipy
44
dataclasses
55
ruamel.yaml
66
opencv-python
7+
simple_parsing
78

89
###### Requirements with Version Specifiers ######`
910
shapely==1.7.1

0 commit comments

Comments
 (0)