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

feat(Examples): Add autotest to test Examples for MAX32690 #1063

Merged
merged 27 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f08c2f2
configure adv name and security through project.mk, improve the conne…
JC-282-AD Jun 21, 2024
ed988c7
configure adv name and security through project.mk, improve the conne…
JC-282-AD Jun 21, 2024
e5669ed
select revision and PHY properly from project.mk
JC-282-AD Jun 21, 2024
09e119a
Merge remote-tracking branch 'origin'
JC-282-AD Jun 25, 2024
7570b6c
add autotest to test all examples
JC-282-AD Jun 27, 2024
f5641c7
Merge branch 'feat/example-test' into main
JC-282-AD Jun 27, 2024
5bbe5ff
clang-format bot reformatting.
JC-282-AD Jun 27, 2024
aadd9eb
Merge remote-tracking branch 'refs/remotes/origin/main'
JC-282-AD Jun 27, 2024
8f33848
merge
JC-282-AD Jun 27, 2024
d94edd4
removed duplicated code
JC-282-AD Jun 27, 2024
1a0097c
first version example_test.yml file
JC-282-AD Jun 28, 2024
18b3ee3
Merge branch 'main' of github.com:JC-282-AD/msdk
JC-282-AD Jun 28, 2024
173a893
change the run on
JC-282-AD Jun 28, 2024
22e49a0
change run on
JC-282-AD Jun 28, 2024
26e1a5f
set the max path
JC-282-AD Jun 28, 2024
fbb24e4
test code
JC-282-AD Jun 28, 2024
9004d2a
set PATH
JC-282-AD Jun 28, 2024
3ddcc76
Update example_tester.yml
EricB-ADI Jun 28, 2024
1b7ad73
add exit error code
JC-282-AD Jun 28, 2024
ba6011d
Merge branch 'main' of github.com:JC-282-AD/msdk
JC-282-AD Jun 28, 2024
24ab7ce
remove duplicate if
JC-282-AD Jun 28, 2024
365ac2c
clang-format bot reformatting.
JC-282-AD Jun 28, 2024
3af2634
Update example_tester.sh to disable I2C and UART_DMA
JC-282-AD Jun 28, 2024
3f53407
lock board to prevent concurrent pull request
JC-282-AD Jun 28, 2024
935262b
Merge branch 'main' of github.com:JC-282-AD/msdk
JC-282-AD Jun 28, 2024
826849d
fix tempdisable
JC-282-AD Jun 28, 2024
a06921e
Update example_tester.sh for multiline comment
JC-282-AD Jun 28, 2024
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
100 changes: 100 additions & 0 deletions .github/workflows/example_tester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
###############################################################################
#
# Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
# Analog Devices, Inc.),
# Copyright (C) 2023-2024 Analog Devices, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################

name: Basic Examples Test

# Cancels workflows in progress that are in the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
pull_request:
branches:
- main
paths-ignore:
# Any files in a docs directory anywhere in the repository.
- "**/docs/**"
- "**/Documentation/**"
# Any README.md file anywhere in the repository.
- "**/README.md"
# Any .pdf file anywhere in the repository.
- "**/*.pdf"
# Any .yml file anywhere in the repository.
# can comment this out when testing changes to THIS yml file
- "**/*.yml"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


env:
MAXIM_PATH: ''

jobs:
Example_Tests:
# The type of runner that the job will run on
runs-on: [self-hosted]
if: github.event.pull_request.draft == false


steps:

- uses: actions/checkout@v4
with:
submodules: false
repository: analogdevicesinc/msdk
fetch-depth: 0

- name: Set MAXIM_PATH
run: |
echo "MAXIM_PATH=$(pwd)" >> $GITHUB_ENV
printenv

- name: Lock Boards
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/[email protected]
with:
boards: |
max32690_board_ex
lock: true
timeout: 900 # Attempt to lock for an hour

- name: run_example_test
run: |
bash .github/workflows/scripts/example_tester.sh max32690_board_ex

- name: Unlock Boards
if: always()
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/[email protected]
with:
lock: false
all_owned: true










Loading
Loading