Skip to content

Commit

Permalink
action indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pouya Rostam committed Nov 28, 2023
1 parent 2fe2cca commit 176a223
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 109 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/c-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,42 +76,42 @@ jobs:
- name: Test
run: python test/test_falcon_c.py "${{secrets.PV_VALID_ACCESS_KEY}}" ${{ matrix.platform }} ${{ matrix.arch }}

build-demo-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
include:
- machine: rpi3-32
platform: raspberry-pi
arch: cortex-a53
- machine: rpi3-64
platform: raspberry-pi
arch: cortex-a53-aarch64
- machine: rpi4-32
platform: raspberry-pi
arch: cortex-a72
- machine: rpi4-64
platform: raspberry-pi
arch: cortex-a72-aarch64
- machine: jetson
platform: jetson
arch: cortex-a57-aarch64

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Create build directory
run: cmake -B ./build

- name: Build demo
run: cmake --build ./build --target falcon_demo

- name: Install dependencies
run: pip install -r test/requirements.txt

- name: Test
run: python3 test/test_falcon_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
build-demo-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
include:
- machine: rpi3-32
platform: raspberry-pi
arch: cortex-a53
- machine: rpi3-64
platform: raspberry-pi
arch: cortex-a53-aarch64
- machine: rpi4-32
platform: raspberry-pi
arch: cortex-a72
- machine: rpi4-64
platform: raspberry-pi
arch: cortex-a72-aarch64
- machine: jetson
platform: jetson
arch: cortex-a57-aarch64

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Create build directory
run: cmake -B ./build

- name: Build demo
run: cmake --build ./build --target falcon_demo

- name: Install dependencies
run: pip install -r test/requirements.txt

- name: Test
run: python3 test/test_falcon_c.py ${{secrets.PV_VALID_ACCESS_KEY}} ${{ matrix.platform }} ${{ matrix.arch }}
22 changes: 11 additions & 11 deletions .github/workflows/python-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ jobs:
- name: Test
run: python falcon_demo_file.py --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --wav_paths ../../resources/audio_samples/test.wav

build-self-hosted:
runs-on: ${{ matrix.machine }}
build-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]

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

- name: Install dependencies
run: pip3 install -r requirements.txt
- name: Install dependencies
run: pip3 install -r requirements.txt

- name: Test
run: python3 falcon_demo_file.py --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --wav_paths ../../resources/audio_samples/test.wav
- name: Test
run: python3 falcon_demo_file.py --access_key ${{secrets.PV_VALID_ACCESS_KEY}} --wav_paths ../../resources/audio_samples/test.wav
92 changes: 46 additions & 46 deletions .github/workflows/python-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,49 +70,49 @@ jobs:
--num-test-iterations 20
--performance-threshold-sec ${{matrix.performance_threshold_sec}}
perf-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
fail-fast: false
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
include:
- machine: rpi3-32
performance_threshold_sec: 0.0
- machine: rpi3-64
performance_threshold_sec: 0.0
- machine: rpi4-32
performance_threshold_sec: 0.0
- machine: rpi4-64
performance_threshold_sec: 0.0
- machine: jetson
performance_threshold_sec: 0.0

steps:
- uses: actions/checkout@v3

- name: Machine state before
working-directory: resources/scripts
run: bash machine-state.sh

- name: Pre-build dependencies
run: python3 -m pip install --upgrade pip

- name: Build dependencies
run: |
pip install wheel && python3 setup.py sdist bdist_wheel && pip install pip install -U dist/*.whl
- name: Install dependencies
run: pip install -r requirements.txt

- name: Test
run: >
python3 test_falcon_perf.py
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
--num-test-iterations 20
--performance_threshold_sec ${{matrix.performance_threshold_sec}}
- name: Machine state after
working-directory: resources/scripts
run: bash machine-state.sh
perf-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
fail-fast: false
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
include:
- machine: rpi3-32
performance_threshold_sec: 0.0
- machine: rpi3-64
performance_threshold_sec: 0.0
- machine: rpi4-32
performance_threshold_sec: 0.0
- machine: rpi4-64
performance_threshold_sec: 0.0
- machine: jetson
performance_threshold_sec: 0.0

steps:
- uses: actions/checkout@v3

- name: Machine state before
working-directory: resources/scripts
run: bash machine-state.sh

- name: Pre-build dependencies
run: python3 -m pip install --upgrade pip

- name: Build dependencies
run: |
pip install wheel && python3 setup.py sdist bdist_wheel && pip install pip install -U dist/*.whl
- name: Install dependencies
run: pip install -r requirements.txt

- name: Test
run: >
python3 test_falcon_perf.py
--access-key ${{secrets.PV_VALID_ACCESS_KEY}}
--num-test-iterations 20
--performance_threshold_sec ${{matrix.performance_threshold_sec}}
- name: Machine state after
working-directory: resources/scripts
run: bash machine-state.sh
26 changes: 13 additions & 13 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,21 @@ jobs:
- name: Test
run: python test_falcon.py ${{secrets.PV_VALID_ACCESS_KEY}}

build-self-hosted:
runs-on: ${{ matrix.machine }}
build-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]
strategy:
matrix:
machine: [rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson]

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

- name: Pre-build dependencies
run: python3 -m pip install --upgrade pip
- name: Pre-build dependencies
run: python3 -m pip install --upgrade pip

- name: Install dependencies
run: pip install -r requirements.txt
- name: Install dependencies
run: pip install -r requirements.txt

- name: Test
run: python3 test_falcon.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}}
- name: Test
run: python3 test_falcon.py --access-key ${{secrets.PV_VALID_ACCESS_KEY}}

0 comments on commit 176a223

Please sign in to comment.