Skip to content

Commit

Permalink
ci: upload release APK (#775)
Browse files Browse the repository at this point in the history
* Upload release APK

* Fix numpy not found issue

ModuleNotFoundError: No module named 'numpy'

* Fix ios test workflow

* Fix ios test workflow
  • Loading branch information
anhappdev authored Aug 29, 2023
1 parent 2a995ff commit 402019f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,6 @@ jobs:
aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \
cp --quiet output/android-apks/test-main.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/ && \
aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \
cp --quiet output/android-apks/test-helper.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/
cp --quiet output/android-apks/test-helper.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/ && \
aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \
cp --quiet flutter/build/app/outputs/flutter-apk/app-release.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/
11 changes: 9 additions & 2 deletions .github/workflows/ios-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ jobs:
BAZEL_CACHE_ARG: "--disk_cache=/tmp/bazel_cache"
run: |
cd flutter/ios/ci_scripts/ && bash ci_post_clone.sh
- name: Run iOS tests
- name: Run iOS unit tests
run: |
open -a Simulator && make flutter/test
make flutter/test/unit
- name: Build iOS integration tests
run: |
cd flutter && flutter --no-version-check build ios --config-only integration_test/first_test.dart
- name: Run iOS integration tests
run: |
open -a Simulator
make flutter/test/integration
4 changes: 2 additions & 2 deletions flutter/ios/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ echo "$MC_LOG_PREFIX cocoapods version:" && pod --version

brew install [email protected] || brew link --overwrite [email protected]
echo "$MC_LOG_PREFIX python version:" && python3 --version
pip3 install --upgrade pip
pip3 install \
python3 -m pip install --upgrade pip
python3 -m pip install \
"numpy>=1.23,<2.0" \
"absl-py>=1.3,<2.0"

Expand Down

0 comments on commit 402019f

Please sign in to comment.