Async Impl #275
Workflow file for this run
This file contains 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
name: Coverage | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build-windows: | |
name: build-windows | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- uses: robinraju/[email protected] | |
with: | |
repository: "rainyl/opencv_dart" | |
tag: "dnn_test_files" | |
fileName: "models.zip" | |
out-file-path: "test/" | |
extract: true | |
- name: build-opencv-dart | |
run: | | |
ls test | |
ls test/models | |
python3 -m pip install conan | |
conan profile detect -f | |
conan build . -b missing -s compiler.cppstd=20 -o package_root="$PWD" -o output_dir="$PWD\build\windows" | |
- uses: actions/upload-artifact@v4 | |
name: upload-windows-x64 | |
with: | |
path: build/publish/libopencv_dart-windows-x64.tar.gz | |
name: libopencv_dart-windows-x64.tar.gz | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.19.6' | |
channel: "stable" | |
- name: setup coverage | |
run: | | |
cd "${{github.workspace}}" | |
ls windows | |
$env:PATH="${{github.workspace}}\windows;$env:PATH" | |
dart pub global activate coverage | |
dart pub global run coverage:test_with_coverage --package . --package-name opencv_dart | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: rainyl/opencv_dart | |
file: ./coverage/lcov.info |