Skip to content

Commit

Permalink
ci: also add hwi emulator setup to coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto committed Jul 13, 2024
1 parent 15d6d9a commit a0a5599
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: Swatinem/[email protected]
- name: Install grcov
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
# TODO: re-enable the hwi tests
# ==== hwi emulator setup ====
- name: Build simulator image
run: docker build -t hwi/ledger_emulator ./ci -f ci/Dockerfile.ledger
- name: Run simulator image
Expand All @@ -37,7 +37,28 @@ jobs:
with:
python-version: '3.9'
- name: Install python dependencies
run: pip install hwi==2.1.1 protobuf==3.20.1
run: pip install hwi==2.1.1 protobuf==3.20.1 requests
- name: Patch openssl.cnf for ripemd160 support
run: |
cat << 'EOF' > /tmp/openssl.cnf
openssl_conf = openssl_init
[openssl_init]
providers = provider_sect
[provider_sect]
default = default_sect
legacy = legacy_sect
[default_sect]
activate = 1
[legacy_sect]
activate = 1
EOF
- name: Setup OPENSSL_CONF environment variable
run: echo "OPENSSL_CONF=/tmp/openssl.cnf" >> $GITHUB_ENV
# ==== End hwi emulator setup ====
- name: Test
run: cargo test --all-features
- name: Make coverage directory
Expand Down

0 comments on commit a0a5599

Please sign in to comment.