Skip to content
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

Task/add utf workflow #74

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/run_utf_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Clone External Repo

on:
workflow_run:
workflows:
- Build
types:
- completed
jobs:
run_utf_tests:
env:
SDK_BUILD_NUM: ${{ github.event.workflow_run.id || '12162629306' }}
STACK_NAME: 'zephyr'
BASE_PATH: ${{ github.workspace }}/utf_repo/
PYTHON3_VENV_DIR: /opt/venv

Check failure on line 15 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

TRAILING_WHITESPACE

.github/workflows/run_utf_tests.yml:15 trailing whitespace

Check warning on line 15 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

YAMLLint (trailing-spaces)

.github/workflows/run_utf_tests.yml:15 trailing spaces
runs-on: silabs-internal
container: artifactory-bud.silabs.net/gsdk-docker-production/sqa-testnode-lite
steps:
- name: Clone external repository
env:
TOKEN: ${{ secrets.EXTERNAL_REPO_TOKEN }}
USER: ${{ secrets.EXTERNAL_REPO_USER }}
WORKSPACE: ${{ env.BASE_PATH }}
WORKSPACE_ROOT: ${{ env.BASE_PATH }}utf_app_ble/

Check failure on line 24 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

TRAILING_WHITESPACE

.github/workflows/run_utf_tests.yml:24 trailing whitespace

Check warning on line 24 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

YAMLLint (trailing-spaces)

.github/workflows/run_utf_tests.yml:24 trailing spaces
run: |
git clone https://$USER:[email protected]/scm/utf/utf_app_ble.git utf_repo
- name: Checkout zephyr branch
working-directory: ./utf_repo
run: |
git checkout feature/zephyr-btp
- name: Init Submodules
working-directory: ./utf_repo
run: |
git submodule update --init --recursive
- name: Workspace setup
env:
WORKSPACE: ${{ env.BASE_PATH }}
WORKSPACE_ROOT: ${{ env.BASE_PATH }}utf_app_ble/

Check failure on line 38 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

TRAILING_WHITESPACE

.github/workflows/run_utf_tests.yml:38 trailing whitespace

Check warning on line 38 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

YAMLLint (trailing-spaces)

.github/workflows/run_utf_tests.yml:38 trailing spaces
UBAI: True

Check warning on line 39 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

YAMLLint (truthy)

.github/workflows/run_utf_tests.yml:39 truthy value should be one of [false, off, off, off, on, on, on, true]
HW_MUX_TOKEN: ${{ secrets.HW_MUX_TOKEN }}
HWMUX_RESERVE: True

Check warning on line 41 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

YAMLLint (truthy)

.github/workflows/run_utf_tests.yml:41 truthy value should be one of [false, off, off, off, on, on, on, true]
HWMUX_GROUP: 'bud-ble-opn-16'
BRANCH_NAME: 'zephyr'
PYTHON3_VENV_DIR: /opt/venv

Check failure on line 44 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

TRAILING_WHITESPACE

.github/workflows/run_utf_tests.yml:44 trailing whitespace

Check warning on line 44 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

YAMLLint (trailing-spaces)

.github/workflows/run_utf_tests.yml:44 trailing spaces
working-directory: /
run: |
echo "Running build now for SDK_BUILD_NUM $SDK_BUILD_NUM"
. "$PYTHON3_VENV_DIR/bin/activate"
export PATH="$PYTHON3_VENV_DIR/bin:$PATH"
cd $BASE_PATH
python3 -m pip install --upgrade pip
python3 -m pip install wheel pyyaml deprecated simpleeval

Check failure on line 52 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

TRAILING_WHITESPACE

.github/workflows/run_utf_tests.yml:52 trailing whitespace

Check warning on line 52 in .github/workflows/run_utf_tests.yml

View workflow job for this annotation

GitHub Actions / compliance

YAMLLint (trailing-spaces)

.github/workflows/run_utf_tests.yml:52 trailing spaces
./workspace_setup.sh
./executor/launch_utf_tests.sh --harness dynamic_harness.yaml --executor_type local --publish_test_results False --pytest_command "pytest --tb=native tests -m zephyr --board_id brd4187c,brd4187c"
Loading