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 MAX78002 #1184

Merged
merged 7 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
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
39 changes: 38 additions & 1 deletion .github/workflows/example_tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ env:
MAXIM_PATH: ''

jobs:
Example_Tests:
Example_Tests_MAX32690:
# The type of runner that the job will run on
runs-on: [self-hosted]
if: github.event.pull_request.draft == false
Expand Down Expand Up @@ -89,6 +89,43 @@ jobs:
lock: false
all_owned: true

Example_Tests_MAX78002:
# 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: |
max78002_board_ex
lock: true
timeout: 900 # Attempt to lock for an hour

- name: run_example_test
run: |
bash .github/workflows/scripts/example_tester_78002.sh max78002_board_ex

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



Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/example_tester.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ function init() {

if [[ $1 = "SPI" || $1 = "SPI_v2" || $1 = "ADC" || $1 = "UART" ]];
then
make -C $Path/$testName METHOD=$2
make -j -C $Path/$testName METHOD=$2
else
make -C $Path/$testName
make -j -C $Path/$testName
fi
fi

Expand Down
Loading
Loading