Skip to content

Commit

Permalink
feat(Examples): Add autotest to test Examples for MAX78002 (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
JC-282-AD authored Sep 20, 2024
1 parent 53fc098 commit f931c56
Show file tree
Hide file tree
Showing 3 changed files with 393 additions and 3 deletions.
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

0 comments on commit f931c56

Please sign in to comment.