Skip to content

Commit

Permalink
updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Oct 9, 2024
1 parent bc51b62 commit 6a313c6
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/modelconverter_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
type: string
description: Which package to test

version:
required: true
type: string
description: >
Which version of underlying conversion tools to use
permissions:
contents: read
packages: read
Expand Down Expand Up @@ -53,6 +59,20 @@ jobs:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
token_format: access_token

- name: Download build files from GCS
if: ${{ inputs.package }} != hailo
run: |
cd docker/extra_packages
if [ "$PACKAGE" = "rvc4" ]; then
gcloud storage cp \
"${GS_BUILD_ARTIFACTS}/snpe-${VERSION}.zip" \
"snpe-${VERSION}.zip"
elif [ "$PACKAGE" = "rvc2" ] || [ "$PACKAGE" = "rvc3" ]; then
gcloud storage cp \
"${GS_BUILD_ARTIFACTS}/openvino-${VERSION}.tar.gz" \
"openvino-${VERSION}.tar.gz"
fi
- name: Run Tests
run: |
pytest -s --verbose "tests/test_packages/test_$PACKAGE.py"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
required: true
type: string
description: Which package to publish

version:
required: true
type: string
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1

- name: Download file from GCS
- name: Download build files from GCS
if: ${{ inputs.package }} != hailo
run: |
cd docker/extra_packages
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/rvc2_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
secrets: inherit
with:
package: rvc2
version: "2022.3.0"
1 change: 1 addition & 0 deletions .github/workflows/rvc3_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
secrets: inherit
with:
package: rvc3
version: "2022.3.0"
1 change: 1 addition & 0 deletions .github/workflows/rvc4_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
secrets: inherit
with:
package: rvc4
version: "2.23.0"

0 comments on commit 6a313c6

Please sign in to comment.