-
Notifications
You must be signed in to change notification settings - Fork 675
Update Github Badge for Workflow #2020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
54c3d5d
add badge to build.yml
huayuan4396 bddcfda
add rest badges
huayuan4396 6e885c3
update badge in readme
huayuan4396 c9db4f3
fix lint
huayuan4396 1941f29
use html table
huayuan4396 88102f7
test font size
huayuan4396 cb0dc0a
update table
huayuan4396 9eb0954
fix lint
huayuan4396 3f9c6eb
create badge in step
huayuan4396 69b041d
fix windows badge
huayuan4396 d96d737
Merge branch 'main' into dev_badge
huayuan4396 4c30e76
sync with main
huayuan4396 bf901bf
check table
huayuan4396 95094d8
make badge and text in one line
huayuan4396 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,11 +42,22 @@ jobs: | |
-Dpplnn_DIR=${pplnn_DIR} | ||
ls build/lib | ||
- name: Install mmdeploy with pplnn | ||
id: badge_status | ||
run: | | ||
rm -rf .eggs && python3 -m pip install -e . | ||
export LD_LIBRARY_PATH="/root/workspace/mmdeploy/build/lib:${LD_LIBRARY_PATH}" | ||
python3 tools/check_env.py | ||
python3 -c 'import mmdeploy.apis.pplnn as pplnn_api; assert pplnn_api.is_available()' | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_pplnn_cuda | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
build_pplnn_cpu: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -56,8 +67,18 @@ jobs: | |
with: | ||
submodules: 'recursive' | ||
- name: Install mmdeploy with pplnn | ||
id: badge_status | ||
run: | | ||
python -m pip install torch==1.8.2 torchvision==0.9.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cpu | ||
python -m pip install mmcv-lite protobuf==3.20.2 | ||
python tools/scripts/build_ubuntu_x64_pplnn.py 8 | ||
python -c 'import mmdeploy.apis.pplnn as pplnn_api; assert pplnn_api.is_available()' | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_pplnn_cpu | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'blue' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,10 +64,20 @@ jobs: | |
coverage xml | ||
coverage report -m | ||
- name: Run mmyolo deploy unittests | ||
id: badge_status | ||
run: | | ||
python -m pip install xdoctest | ||
cd /home/runner/work/mmyolo | ||
pytest tests/test_deploy | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_cpu_model_convert | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cpu_sdk: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -85,6 +95,7 @@ jobs: | |
sudo apt install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev libc++1-9 libc++abi1-9 | ||
sudo apt install libopencv-dev lcov wget | ||
- name: Build and run SDK unit test without backend | ||
id: badge_status | ||
run: | | ||
mkdir -p build && pushd build | ||
cmake .. -DCMAKE_CXX_COMPILER=g++ -DMMDEPLOY_CODEBASES=all -DMMDEPLOY_BUILD_SDK=ON -DMMDEPLOY_BUILD_SDK_PYTHON_API=OFF -DMMDEPLOY_TARGET_DEVICES=cpu -DMMDEPLOY_COVERAGE=ON -DMMDEPLOY_BUILD_TEST=ON | ||
|
@@ -95,6 +106,15 @@ jobs: | |
lcov --capture --directory . --output-file coverage.info | ||
ls -lah coverage.info | ||
cp coverage.info ../ | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_cpu_sdk | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
cross_build_aarch64: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -110,8 +130,18 @@ jobs: | |
with: | ||
python-version: 3.8 | ||
- name: gcc-multilib | ||
id: badge_status | ||
run: | | ||
sh -ex tools/scripts/ubuntu_cross_build_aarch64.sh | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: cross_build_aarch64 | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cuda102: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -155,10 +185,20 @@ jobs: | |
rm -rf .eggs && python -m pip install -e . | ||
python tools/check_env.py | ||
- name: Run unittests and generate coverage report | ||
id: badge_status | ||
run: | | ||
coverage run --branch --source mmdeploy -m pytest -rsE tests | ||
coverage xml | ||
coverage report -m | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_cuda102 | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cuda113: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -205,13 +245,23 @@ jobs: | |
coverage xml | ||
coverage report -m | ||
- name: Upload coverage to Codecov | ||
id: badge_status | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
file: ./coverage.xml,./coverage.info | ||
flags: unittests | ||
env_vars: OS,PYTHON,CPLUS | ||
name: codecov-umbrella | ||
fail_ci_if_error: false | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_cuda113 | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cuda113_linux: | ||
runs-on: [self-hosted, linux-3090] | ||
|
@@ -251,10 +301,20 @@ jobs: | |
export LD_LIBRARY_PATH="/root/workspace/mmdeploy/build/lib:${LD_LIBRARY_PATH}" | ||
python3 tools/check_env.py | ||
- name: Test TensorRT pipeline | ||
id: badge_status | ||
run: | | ||
export LD_LIBRARY_PATH="/root/workspace/mmdeploy/build/lib:${LD_LIBRARY_PATH}" | ||
export LD_LIBRARY_PATH="/root/workspace/mmdeploy/mmdeploy/lib:${LD_LIBRARY_PATH}" | ||
bash .github/scripts/linux/test_full_pipeline.sh trt cuda | ||
- name: create badge | ||
if: always() | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_cuda113_linux | ||
LABEL: 'build' | ||
STATUS: ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }} | ||
COLOR: ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build_cuda113_windows: | ||
runs-on: [self-hosted, win10-3080] | ||
|
@@ -316,3 +376,17 @@ jobs: | |
conda activate $pwd\tmp_env | ||
$env:path = "$pwd\build\bin\Release;" + $env:path | ||
.github\scripts\windows\test_full_pipeline.ps1 -Backend trt -Device cuda | ||
|
||
badge_build_cuda113_windows: | ||
needs: build_cuda113_windows | ||
if: always() | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: create badge | ||
uses: RubbaBoy/[email protected] | ||
with: | ||
NAME: build_cuda113_windows | ||
LABEL: 'build' | ||
STATUS: ${{ needs.build_cuda113_windows.result == 'success' && 'passing' || needs.build_cuda113_windows.result }} | ||
COLOR: ${{ needs.build_cuda113_windows.result == 'success' && 'green' || 'red' }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.