Skip to content

Commit

Permalink
disable actions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kendryte747 committed Jul 20, 2024
1 parent d8ea327 commit 089f6d3
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/build-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,43 +70,43 @@ jobs:
artifacts: "release/**.bin"
token: ${{ secrets.GITHUB_TOKEN }}

test:
if: endsWith(github.ref, 'main')
runs-on: self-hosted
needs: build
defaults:
run:
shell: bash
env:
SERIAL_DEV: /dev/ttyACM1
# test:
# if: endsWith(github.ref, 'main')
# runs-on: self-hosted
# needs: build
# defaults:
# run:
# shell: bash
# env:
# SERIAL_DEV: /dev/ttyACM1

steps:
- name: Check Board
run: |
ls ${{ env.SERIAL_DEV }}
if [ $? -ne 0 ]; then
echo "Runner have no board connected."
exit -1
fi
# steps:
# - name: Check Board
# run: |
# ls ${{ env.SERIAL_DEV }}
# if [ $? -ne 0 ]; then
# echo "Runner have no board connected."
# exit -1
# fi

- uses: actions/checkout@v3
# - uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
path: ./build
name: "canmv-${{ github.sha }}"
# - uses: actions/download-artifact@v3
# with:
# path: ./build
# name: "canmv-${{ github.sha }}"

- name: Burn Test Firmware
run: |
python3 tools/flash/kflash_py/kflash.py -p ${{ env.SERIAL_DEV }} -b 1500000 build/canmv_k1_standard.bin
# - name: Burn Test Firmware
# run: |
# python3 tools/flash/kflash_py/kflash.py -p ${{ env.SERIAL_DEV }} -b 1500000 build/canmv_k1_standard.bin

- name: Run Tests
run: |
cd tools/tests
python3 run-tests.py --target k210 --device ${{ env.SERIAL_DEV }} --baudrate 115200
cd -
# - name: Run Tests
# run: |
# cd tools/tests
# python3 run-tests.py --target k210 --device ${{ env.SERIAL_DEV }} --baudrate 115200
# cd -

- uses: actions/upload-artifact@v3
with:
name: "canmv-test-results-${{ github.sha }}"
path: tools/tests/results
# - uses: actions/upload-artifact@v3
# with:
# name: "canmv-test-results-${{ github.sha }}"
# path: tools/tests/results

0 comments on commit 089f6d3

Please sign in to comment.