Skip to content

Create cloud_code_scan.yml (#25) #12

Create cloud_code_scan.yml (#25)

Create cloud_code_scan.yml (#25) #12

Workflow file for this run

name: unittest
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: arduino/setup-protoc@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest coverage
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pushd tests/proto && protoc --python_out=./python *.proto && popd
- name: Test with unittest
run: |
coverage run -m unittest discover .
- uses: codecov/codecov-action@v1