-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 918 Bytes
/
python-tests.yaml
File metadata and controls
39 lines (33 loc) · 918 Bytes
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
name: Python Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install -y python3.7 python3.7-venv python3.7-dev
python3.7 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
- name: Install dependencies
run: |
source venv/bin/activate
pip install -r requirements.txt || true
pip install numpy opencv-python-headless pyrealsense2
- name: Run tests
run: |
source venv/bin/activate
python -m unittest discover -s Tests -p "test_*.py"