forked from daviddrysdale/python-phonenumbers
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 774 Bytes
/
Copy pathcoverage.yml
File metadata and controls
29 lines (27 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: coverage
on: [push]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install protobuf coveralls
- name: Test with coverage
run: |
cd python
COVERAGE_FILE=main.cov coverage run --source=phonenumbers ./testwrapper.py
COVERAGE_FILE=pb2.cov coverage run --source=phonenumbers.pb2 ./testpb2.py
coverage combine main.cov pb2.cov
- name: Upload coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
cd python
coveralls