Skip to content

Commit

Permalink
fix nanosp test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arobsn committed Nov 4, 2024
1 parent 4c6cb49 commit 3eee234
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
# export BOLOS_SDK=${{ matrix.SDK }}
# make clean
# scan-build --use-cc=clang -analyze-headers -enable-checker security -enable-checker unix -enable-checker valist -o scan-build --status-bugs make default

# - name: Upload scan result
# uses: actions/upload-artifact@v4
# if: failure()
Expand All @@ -139,12 +139,16 @@ jobs:
job_test:
name: Functional Tests

strategy:
strategy:
matrix:
include:
- model: nanox
- model: nanos2

- model:
id: nanox
dir: nanox
- model:
id: nanosp
dir: nanos2

needs: job_build_application_with_reusable_workflow
runs-on: ubuntu-latest

Expand All @@ -169,12 +173,9 @@ jobs:
run: |
apt-get update && apt-get install -qy curl netcat-traditional
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -qy nodejs
echo "Logging files in the bin directory:"
ls -l
ls -l bin
apt-get install -qy nodejs
export SEED=`cat tests/seed.txt`
nohup bash -c "python /speculos/speculos.py bin/${{ matrix.model }}/bin/app.elf --apdu-port 9999 --api-port 5000 --display headless --model=${{ matrix.model }} --seed \"${SEED}\"" > speculos.log 2<&1 &
nohup bash -c "python /speculos/speculos.py bin/${{ matrix.model.dir }}/bin/app.elf --apdu-port 9999 --api-port 5000 --display headless --model=${{ matrix.model.id }} --seed \"${SEED}\"" > speculos.log 2<&1 &
cd tests && npm install
until `nc -w5 -z -v 127.0.0.1 9999`; do sleep 1; done;
npm --model=${{matrix.model}} --port=5000 run test
Expand Down

0 comments on commit 3eee234

Please sign in to comment.