Update README.md #19
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: 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" |