Skip to content

Commit

Permalink
Depoly Codecov (#18)
Browse files Browse the repository at this point in the history
* try codecov

* fix typo
  • Loading branch information
zhenhuaw-me authored Sep 23, 2020
1 parent 6533a98 commit 07e3d15
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,31 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.5, 3.6, 3.7]
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --use-feature=2020-resolver -r requirements.txt
- name: Build package
run: tools/1-build.sh
shell: bash

- name: Install package
run: pip install -U assets/dist/tflite2onnx-*.whl
- name: Testing
run: pytest

- name: Testing (collecting coverage data)
run: coverage run --source=./tflite2onnx -m pytest

# - name: SSH via Ngrok if fail
# if: ${{ failure() }}
# env:
Expand All @@ -39,3 +45,11 @@ jobs:
# - name: Live instance if fail
# if: ${{ failure() }}
# run: sleep 1h

- name: Uploading coverage report
continue-on-error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
coverage xml
bash <(curl -s https://codecov.io/bash)
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
TFLITE2ONNX - Convert TensorFlow Lite models to ONNX
====================================================

![Build and Test](https://github.com/jackwish/tflite2onnx/workflows/Build%20and%20Test/badge.svg)
![Sanity](https://github.com/jackwish/tflite2onnx/workflows/Sanity/badge.svg)
[![Build and Test](https://github.com/jackwish/tflite2onnx/workflows/Build%20and%20Test/badge.svg)](https://github.com/jackwish/tflite2onnx/actions?query=workflow%3A%22Build+and+Test%22)
[![Sanity](https://github.com/jackwish/tflite2onnx/workflows/Sanity/badge.svg)](https://github.com/jackwish/tflite2onnx/actions?query=workflow%3ASanity)
[![Coverage](https://codecov.io/gh/jackwish/tflite2onnx/branch/master/graph/badge.svg)](https://codecov.io/gh/jackwish/tflite2onnx)

`tflite2onnx` converts TensorFlow Lite (TFLite) models (`*.tflite`) to ONNX models (`*.onnx`).

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
flake8
numpy
onnx
Expand Down

0 comments on commit 07e3d15

Please sign in to comment.