Add codecov to github workflow (#1465)

* Add codecov to github workflow

* Include setup python and tox in github workflow

* Install tox in github workflow test step

* Add protoc install to github ci

* Call coverage directly in github ci

* Install requirements-dev in github ci

* Call make gen-protos in github ci before pytest

* Install tox before run tests

* Call coverage xml before codecov upload

* Use codecov token

* Don't use codecov token
This commit is contained in:
Jonathan Zernik 2021-10-02 01:09:51 -07:00 committed by GitHub
parent f68d8628ea
commit b5438d2461
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,25 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install tox
- name: Run tests and collect coverage
run: |
make gen-protos
coverage run -m pytest tests
coverage xml
-
name: Coverage
uses: codecov/codecov-action@v2
-
name: Docker meta
id: docker_meta