Skip to content

Commit b0a73a7

Browse files
committed
Added coverage upload to CI
1 parent a64a958 commit b0a73a7

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/unit_tests.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ jobs:
1515
- name: Get Docker image
1616
run: docker pull suoto/hdl_checker_test:latest
1717
- name: Run tests
18-
run: |
19-
./run_tests.sh -e py36-linux -- -v
18+
run: ./run_tests.sh -e py36-linux -- -v
19+
- name: Upload coverage
20+
run: bash <(curl -s https://codecov.io/bash)
2021
Python37:
2122
runs-on: ubuntu-latest
2223
steps:
@@ -28,8 +29,9 @@ jobs:
2829
- name: Get Docker image
2930
run: docker pull suoto/hdl_checker_test:latest
3031
- name: Run tests
31-
run: |
32-
./run_tests.sh -e py37-linux -- -v
32+
run: ./run_tests.sh -e py37-linux -- -v
33+
- name: Upload coverage
34+
run: bash <(curl -s https://codecov.io/bash)
3335
Python38:
3436
runs-on: ubuntu-latest
3537
steps:
@@ -41,13 +43,17 @@ jobs:
4143
- name: Get Docker image
4244
run: docker pull suoto/hdl_checker_test:latest
4345
- name: Run tests
44-
run: |
45-
./run_tests.sh -e py38-linux -- -v
46+
run: ./run_tests.sh -e py38-linux -- -v
47+
- name: Upload coverage
48+
run: bash <(curl -s https://codecov.io/bash)
4649

4750
Pypi:
4851
runs-on: ubuntu-latest
4952
needs: [Python36, Python37, Python38]
5053
steps:
54+
- uses: actions/checkout@v1
55+
- name: Build dist
56+
run: python setup.py sdist
5157
- name: Publish package
5258
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
5359
uses: pypa/gh-action-pypi-publish@master

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HDL Checker
22

33
[![PyPI version](https://img.shields.io/pypi/v/hdl_checker.svg)](https://pypi.org/project/hdl_checker/)
4-
[![Build Status](https://travis-ci.org/suoto/hdl_checker.svg?branch=master)](https://travis-ci.org/suoto/hdl_checker)
4+
![Linux Unit tests](https://github.com/suoto/hdl_checker/workflows/Unit%20tests/badge.svg?branch=master)
55
[![Build status](https://ci.appveyor.com/api/projects/status/kbvor84i6xlnw79f/branch/master?svg=true)](https://ci.appveyor.com/project/suoto/hdl-checker/branch/master)
66
[![codecov](https://codecov.io/gh/suoto/hdl_checker/branch/master/graph/badge.svg)](https://codecov.io/gh/suoto/hdl_checker)
77
[![Join the chat at https://gitter.im/suoto/hdl_checker](https://badges.gitter.im/suoto/hdl_checker.svg)](https://gitter.im/suoto/hdl_checker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -207,7 +207,7 @@ The container used for testing is [suoto/hdl_checker_test][hdl_checker_container
207207
208208
| System | CI | CI status |
209209
| :--: | :--: | :--: |
210-
| Linux | Yes | [![Build Status](https://travis-ci.org/suoto/hdl_checker.svg?branch=master)](https://travis-ci.org/suoto/hdl_checker) |
210+
| Linux | Yes | ![Linux Unit tests](https://github.com/suoto/hdl_checker/workflows/Unit%20tests/badge.svg?branch=master) |
211211
| Windows | Yes | [![Build status](https://ci.appveyor.com/api/projects/status/kbvor84i6xlnw79f/branch/master?svg=true)](https://ci.appveyor.com/project/suoto/hdl_checker/branch/master) |
212212
213213
---

0 commit comments

Comments
 (0)