File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
-
3
- on :
4
- push :
5
-
6
-
2
+ on : [push]
7
3
jobs :
8
4
build :
9
5
runs-on : ubuntu-latest
13
9
version : [2.7, 3.6, 3.8]
14
10
15
11
steps :
16
- - uses : actions/checkout@v2
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
17
14
- name : Set up Python ${{ matrix.python-version }}
18
15
uses : actions/setup-python@v2
19
16
with :
20
17
python-version : ${{ matrix.version }}
21
18
- name : Install Dependencies
22
19
run : |
23
20
python -m pip install --upgrade pip
24
- pip install pytest mock
25
- python setup.py install
21
+ pip install pytest mock pytest-cov
22
+ python setup.py install
23
+ pytest --cov=./ --cov-report=xml
26
24
- name : Run Tests
27
25
run : python -m pytest -v
28
-
26
+ - name : upload coverage to Codecov
27
+ uses : codecov/codecov-action@v1
28
+ with :
29
+ token : ${{ secrets.CODECOV_TOKEN }}
30
+ name : codecov-umbrella
31
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://github.com/Shopify/shopify_python_api/workflows/CI/badge.svg )] ( https://github.com/Shopify/shopify_python_api/actions )
4
4
[ ![ PyPI version] ( https://badge.fury.io/py/ShopifyAPI.svg )] ( https://badge.fury.io/py/ShopifyAPI )
5
+ [ ![ codecov] ( https://codecov.io/gh/Shopify/shopify_python_api/branch/master/graph/badge.svg?token=pNTx0TARUx )] ( https://codecov.io/gh/Shopify/shopify_python_api )
5
6
6
7
The [ Shopify Admin API] ( https://shopify.dev/docs/admin-api ) Python Library
7
8
You can’t perform that action at this time.
0 commit comments