mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-13 12:33:25 +02:00
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:
parent
f68d8628ea
commit
b5438d2461
1 changed files with 19 additions and 0 deletions
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue