-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: also add hwi emulator setup to coverage test
- Loading branch information
Showing
1 changed file
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|