Skip to content

Commit

Permalink
[wf] codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed May 2, 2021
1 parent a5d40ef commit e10e5a3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Codecov
on:
push:
branches:
- 'devel'
jobs:
codecov:
name: Codecov Workflow
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.8
- name: Generate coverage report
run: |
python -m pip install --upgrade pip
pip install pytest
pip install pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pytest --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
2 changes: 1 addition & 1 deletion .github/workflows/est-libest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
sudo openssl x509 -outform der -in /tmp/certs/cert-0-0.pem -out /tmp/certs/cert-0-1.der
- name: "[ PREPARE ] reconfigure est_proxy and enable SRP"
run: |
run: |
sudo cat .github/wf_data/est_proxy_srp.cfg >> examples/Docker/data/est_proxy.cfg
cd examples/Docker/
docker-compose restart
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,4 @@ scripts/*
certs/*
data/*
dev_helper.py
.coveralls.yml

0 comments on commit e10e5a3

Please sign in to comment.